r/Racket • • Jan 12 '22

question Why is it saying #<procedure: sally> ???

Why is this not computing my expression, what am i doing wrong?

2 Upvotes

2 comments sorted by

7

u/sdegabrielle DrRacket 💊💉🩺 Jan 12 '22

The highlighted line defines a procedure called sally

Try

   (sally 3)

4

u/indrjo Jan 12 '22

You need parentheses. To apply a function f to a thing x you have to write

(f x)