diff --git a/index.html b/index.html index 6e4a9f8..f9109ec 100644 --- a/index.html +++ b/index.html @@ -9,25 +9,37 @@
@ me (aidanprattewart@protonmail.com) if you have any errors, with console output please.
- +
(swap; a b -> b a)
+a b -> b a
+parensed lambda: (a -> a)
+1 2 swap
+let: (name; value1 value2)
N.B. when called, applies (pushes) both values to the stack
1 2 3 (a b c -> a b c)
+example named function: (++; x -> x 1 +)
+1 2 pair
evaluates to {1, 2}
1 +
will push a partially-applied function onto the stack
+can call fst
and snd
on pairs
+'+
pushes (not applies) a closure onto the stack
1 + (partial -> 2 partial)
-pair
+1 +
is a partially applied function/closure
+fst
or snd
+Example useage: "1 "int coerce 1 +
+"true-option "false-option val1 val2 ==
+(!; x -> 1 '(-> x 1 - ! x *) x 0 ==)
+"stop
): (fold; x acc fn -> '(-> acc) '(-> x acc fn 'fn fold) 'x \"stop ==)