yet more docs
This commit is contained in:
parent
896ed567fd
commit
7438b2c9e5
1 changed files with 30 additions and 2 deletions
28
Readme.org
28
Readme.org
|
|
@ -103,6 +103,34 @@ Like the *if form*, if the conditional returns a non-boolean value the *while lo
|
||||||
|
|
||||||
**** TODO let
|
**** TODO let
|
||||||
**** TODO circuit
|
**** TODO circuit
|
||||||
|
**** not quite control flow
|
||||||
|
Several other functions use lazy evaluation of their arguments. The below list is non-exhaustive:
|
||||||
|
- toggle
|
||||||
|
- inc
|
||||||
|
- dec
|
||||||
|
|
||||||
|
These functions are mentioned here for their use with control flow.
|
||||||
|
- inc: increment a symbol by one
|
||||||
|
- dec: decrement a symbol by one
|
||||||
|
- toggle: flip a symbol from true to false, or vice versa
|
||||||
|
|
||||||
|
For more information on these functions consult the output of the help function:
|
||||||
|
#+BEGIN_SRC lisp
|
||||||
|
λ (help toggle)
|
||||||
|
NAME: toggle
|
||||||
|
|
||||||
|
ARGS: 1 args of any type
|
||||||
|
|
||||||
|
DOCUMENTATION:
|
||||||
|
|
||||||
|
switches a boolean symbol between true or false.
|
||||||
|
Takes a single argument (a symbol). Looks it up in the variable table.
|
||||||
|
Either sets the symbol to true if it is currently false, or vice versa.
|
||||||
|
|
||||||
|
CURRENT VALUE AND/OR BODY:
|
||||||
|
<builtin>
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO quote and eval
|
*** TODO quote and eval
|
||||||
*** TODO Defining variables and functions
|
*** TODO Defining variables and functions
|
||||||
**** TODO Anatomy
|
**** TODO Anatomy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue