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. |
17 visitors online |
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) |
Angelus-class Explorer |
dbg Salvagers Fleet |
Quality Mods (random) |
Weapon+27 |
Praetorian-class missile ship |
Balanced Mods (random) |
Starlight-class cruiser |
"PDmod" ICX Overhaul |