The following expression give me an error:
(apply map list '((a 1) (b 2) (c 3)))
Quote
ERR: list expected in function apply : list@4095B0
Instead, I wish the output was:
Quote
((a b c) (1 2 3))
Can someone help me?
Thanks
cameyo
Use transpose:
> (transpose '((a 1) (b 2) (c 3)))
((a b c) (1 2 3))
>
A hint will be added to the description of list in the manual.
"transpose" works like i want :-)
But is the expression wrong logically or syntactically?
Why "apply" does not receive a list?
Thanks again
cameyo
Quote from: "cameyo"
But is the expression wrong logically or syntactically?
Why "apply" does not receive a list?
This is what you had been looking for originally.
(apply map (cons list '((a 1) (b 2) (c 3))))
Thanks.
A big help for me.
cameyo