[plt-scheme] Re: create a board with vector

From: Mona (mona.esmaili at gmail.com)
Date: Sun Dec 6 11:52:22 EST 2009

The problem I have here is that I cant underestand what is happening
by:

                        (build-vector n
	                   	                 (lambda (i)
                                   			   (f i j)))))))


build_vctor has 2 inputs, it seems one of the inputs is n and the
other is (lamda (i) (f i j)). I cant understand what (lamda (i) (f i
j))   will produce.

Cheers,
Mona

On Dec 6, 5:27 pm, Matt Jadud <jad... at gmail.com> wrote:
> On Sun, Dec 6, 2009 at 10:10 AM, Mona Esmaeili <mona.esma... at gmail.com> wrote:
> > Hi,Yes exactly I understood the all of the code but I didn't understand
> > Build-board.I don't know what is f.
>
> Someone else on the list might go about this differently, but I'll ask
> you this question to start:
>
> If I write
>
> (define (my-add a b)
>   (+ a b))
>
> and then write
>
> (my-add 3 5)
>
> What syntactic position does "my-add" occupy? Now, couple that with
> the documentation for "build-vector" and see if that doesn't get you a
> bit unstuck.
>
> http://docs.plt-scheme.org/reference/vectors.html#%28def._%28%28lib._...
>
> Cheers,
> Matt
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.