This is a file of useful functions that are not directly built into the the Linisp interpreter. It is assumed that most programs will make use of Stdlib for its convenience.
Constants
true
Equal to 1.
false
Equal to 0.
Program struct and flow-control functions
function
Arguments:
- Name and parameters: Q-Expression of symbols
- Body: Q-Expression of S-Expressions
Use: Short-hand means to define functions.
Return type: Empty S-Expression
Note: At present functions are bound to the global scope.
List manipulation functions
first
Arguments:
- List: Q-Expression
Return type: Any type
Use: Extract the first value from a list
length
Arguments:
- List: Q-Expression
Return type: Number
Use: Measures the length of a list