apply can work with just a function

Started by cormullion, March 29, 2006, 06:58:42 AM

Previous topic - Next topic

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:


(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!

alex

#1
Undocumented NewLisp :)