diff --git a/docs/reference/FuncRef.html b/docs/reference/FuncRef.html index b984927..9e12d11 100644 --- a/docs/reference/FuncRef.html +++ b/docs/reference/FuncRef.html @@ -21,7 +21,7 @@ padding-top: 50px; padding-bottom: 50px; hyphens: auto; - word-wrap: break-word; + overflow-wrap: break-word; text-rendering: optimizeLegibility; font-kerning: normal; } @@ -92,6 +92,7 @@ pre code { padding: 0; overflow: visible; + overflow-wrap: normal; } .sourceCode { background-color: transparent; @@ -153,7 +154,6 @@
Version -10.0.0
Each function, combinator, or definition should be documented here.
“not negative”
-(Function, Boolean Predicate)
-Integer on top of stack is replaced by Boolean value indicating whether it is non-negative.
- N !-
------------ N < 0
- false
-
- N !-
----------- N >= 0
- true
-0 >=
-“apply one”
(Combinator)
@@ -194,7 +181,7 @@ ... x [Q] app1
---------------------------------
... [x ...] [Q] infra first
-nullary popd
Just a specialization of nullary really. Its parallelizable cousins are more useful.
[P] [Q] b
---------------
P Q
-[i] dip i
[P] [Q] b
@@ -224,7 +211,7 @@
... y x [P] binary
-----------------------
... A
-Definition
+Definition
unary popd
Discussion
Runs any other quoted function and returns its first result while consuming exactly two items from the stack.
@@ -237,7 +224,7 @@
B A [...] ccons
---------------------
[B A ...]
-Definition
+Definition
cons cons
Discussion
Does cons twice.
@@ -274,13 +261,27 @@
... [a b c] [Q] infra
---------------------------
c b a Q [...] swaack
-Definition
+Definition
swons swaack [i] dip swaack
Discussion
This is one of the more useful combinators. It allows a quoted expression to serve as a stack for a program, effectively running it in a kind of “pocket universe”. If the list represents a datastructure then infra lets you work on its internal structure.
Crosslinks
+!-
+“not negative”
+(Function, Boolean Predicate)
+Integer on top of stack is replaced by Boolean value indicating whether it is non-negative.
+ N !-
+----------- N < 0
+ false
+
+ N !-
+---------- N >= 0
+ true
+Definition
+0 >=
+
nullary
(Combinator)
Run a quoted program without using any stack values and leave the first item of the result on the stack.
diff --git a/docs/reference/Functor-Reference.md b/docs/reference/Functor-Reference.md
index b74d0e2..5501deb 100644
--- a/docs/reference/Functor-Reference.md
+++ b/docs/reference/Functor-Reference.md
@@ -7,30 +7,6 @@ Each function, combinator, or definition should be documented here.
--------------------
-## !-
-
-"not negative"
-
-(Function, Boolean Predicate)
-
-Integer on top of stack is replaced by Boolean value indicating whether
-it is non-negative.
-
- N !-
- ----------- N < 0
- false
-
- N !-
- ---------- N >= 0
- true
-
-
-### Definition
-
- 0 >=
-
---------------------
-
## app1
"apply one"
@@ -220,6 +196,30 @@ kind of "pocket universe". If the list represents a datastructure then
--------------------
+## !-
+
+"not negative"
+
+(Function, Boolean Predicate)
+
+Integer on top of stack is replaced by Boolean value indicating whether
+it is non-negative.
+
+ N !-
+ ----------- N < 0
+ false
+
+ N !-
+ ---------- N >= 0
+ true
+
+
+### Definition
+
+ 0 >=
+
+--------------------
+
## nullary
(Combinator)
diff --git a/docs/reference/Makefile b/docs/reference/Makefile
index 8b16eab..789f884 100644
--- a/docs/reference/Makefile
+++ b/docs/reference/Makefile
@@ -1,3 +1,9 @@
+FUNCDOCS != ls [a-z]*.md
-all:
+
+all: Functor-Reference.md
pandoc -s --toc --toc-depth=2 --ascii Functor-Reference.md -o FuncRef.html
+
+
+Functor-Reference.md: HEADER.md $(FUNCDOCS)
+ cat HEADER.md $(FUNCDOCS) > Functor-Reference.md