L# question ::: problem with map function

1 view
Skip to first unread message

l3v3rz

unread,
Nov 30, 2009, 10:53:54 AM11/30/09
to LSharp
trying to use map -

this works : -

(map (fn (x) (+ x 10)) '(1 2 3))
(11 12 13)

this doesn't - it should do this .........

(map + '(1 2 3 4) '(100 200 300))
(101 202 303)

but instead returns ....
'(1 2 3 4)

Is this a 'feature' or is there another way to achieve the desired
result ???

thanks
Reply all
Reply to author
Forward
0 new messages