[plt-scheme] Re: Trouble using map with object methods

From: Marc Fernandez Vilaseca (pseudomarc at gmail.com)
Date: Sun Jul 10 00:50:27 EDT 2005

Thanks for your pointer, Matthias.

Substituting

(define a-list
  (list an-object another-object))

does sort the problem.

Interestingly, though, "Teach Yourself Scheme in Fixnum Days" seems to
suggest that using quote to create a list is acceptable syntaxis:

> list takes any number of arguments and returns the list containing them:
> 
> (list 1 2 3 4)
> =>  (1 2 3 4)
>
> Indeed, if we know all the elements of a list, we can use quote to specify the list:

> '(1 2 3 4)
> =>  (1 2 3 4)

As quoted from:
www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-4.html#node_sec_2.2.3

Thanks again,

Marc



Posted on the users mailing list.