apply can work with just a function
Posted: Wed Mar 29, 2006 2:58 pm
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:
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!
Code: Select all
(map apply '(directory real-path sys-info))