[plt-scheme] Re: list output

From: Marco Morazan (morazanm at gmail.com)
Date: Wed Apr 29 15:49:39 EDT 2009

>> Grant read the error message to you. It doesn't say ANYTHING about
>> parameters. What does it mean?
>
> It thinks it's a procedure call or expects it to be.  Other than that
> I have no idea.
>

What should you put parenthesis around?

Take a look:

(define x 1)
(define y 3)
(define (f a b) (+ a b))

(define (g) (f x y))

What does (f x y) mean?

What does (g) mean?

What is the difference between g and (g)?

What is the difference between f and (f x y)?

Now, do you understand why you were getting an error?

-- 

Cheers,

Marco


Posted on the users mailing list.