Functions Documentation | |
Name | lambda |
Syntax | (lambda args exp) -> lambda |
Argument List | args: A list of arguments you want to pass into the function. Can also be Nil. exp: The code you want to pass the arguments to. It is not evaluated. |
Returns | The new function. |
Category | function operator |
Description | Function allowing you to create a function for later use. |
Example |
(block (number fun) (setq number 5) (setq fun (lambda (adder) (add 1 adder) )) (dbgOutput number) (setq number (fun number)) (dbgOutput number) (setq number (fun number)) (dbgOutput number) ) This displays on the debug console. 5 6 7 True |
Comment | The most important function in all of Transcendence. Allows the creation of functions to be stored and used later. Many creative things can be done with it. |
22 visitors online |
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 (April '24) |
Featured Mods (random) |
"PDmod" ICX Overhaul |
Stephinian Laser Cannon |
Quality Mods (random) |
Ore Smelters & Fuel Makers Pack 1.0 |
Brigand Playership for PSD6+ |
Balanced Mods (random) |
TX2 Centauri Module |
Northwind Equipment Pack for 1.0 |