Page 1 of 1

apply can work with just a function

Posted: Wed Mar 29, 2006 2:58 pm
by cormullion
I discovered by accident (and from ignorance) that apply doesn't always need a list if the function doesn't need one. So you can do this:

Code: Select all

(map apply '(directory real-path sys-info))
or something more useful. This is cool, and seems to work fine, even though the reference manual doesn't explicitly say that you can do it!

Posted: Wed Mar 29, 2006 5:46 pm
by alex
Undocumented NewLisp :)