newLISP Fan Club

Forum => Anything else we might add? => Topic started by: cormullion on March 29, 2006, 06:58:42 AM

Title: apply can work with just a function
Post by: cormullion on March 29, 2006, 06:58:42 AM
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!
Title:
Post by: alex on March 29, 2006, 09:46:50 AM
Undocumented NewLisp :)