join problem
Posted: Tue Oct 03, 2006 10:32 am
I accidentally did this:
rather than
and join wasn't happy - I had to kill the newLISP session.
In general, should user-errors like this be guarded against in the code, or should we be allowed to shoot ourselves in the foot?
Or perhaps join could do this:
although I would have written
[/code]
Code: Select all
(join '(1 2 3))
Code: Select all
(join '("1" "2" "3"))
In general, should user-errors like this be guarded against in the code, or should we be allowed to shoot ourselves in the foot?
Or perhaps join could do this:
Code: Select all
(join (sequence 1 10))
;-> 12345678910
Code: Select all
(join (map string (sequence 1 10)))