Functions Documentation | |
Name | apply |
Syntax | (apply lambda list) -> return value of lambda |
Argument List | lambda: The function (lambda) you want to run. list: A list of arguments you want the function to be run with. |
Returns | Whatever the lambda returns. |
Category | function operator |
Description | Runs the function as though it was called normally using the list as its arguments. |
Example |
(block (someArgumentList) (setq someArgumentList '(True True Nil)) (apply and someArgumentList) )This will return Nil. (block (someArgumentList) (setq someArgumentList '(1 34)) (apply add someArgumentList) ) This will return 35. |
Comment | Much more powerful than first appears. Both the function and argument list can vary. |
27 visitors online |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Mod of the Month (March '24) |
Featured Mods (random) |
Northwind Equipment Pack for 1.0 |
The Network |
Quality Mods (random) |
Weapon+27 |
Light Carrier Playership |
Balanced Mods (random) |
Shrikes Mines & Missiles |
Brigand Playership for PSD6+ |