diff --git a/docs/reference/enstacken.md b/docs/reference/enstacken.md index d742c92..620b6d1 100644 --- a/docs/reference/enstacken.md +++ b/docs/reference/enstacken.md @@ -2,28 +2,27 @@ ## enstacken -Basis Function Combinator +Function -stack \[clear\] dip +Put the stack onto the stack replacing the contents of the stack. + + ... a b c enstacken + ------------------------- + [c b a ...] -Gentzen diagram. ### Definition -if not basis. - -### Derivation - -if not basis. - -### Source - -if basis +> [stack] \[[clear]\] [dip] ### Discussion -Lorem ipsum. +This is a destructive version of [stack]. See the note under +[disenstacken] about the apparent but illusory reversal of the stack. ### Crosslinks -Lorem ipsum. +[stack] +[unstack] +[disenstacken] + diff --git a/docs/reference/eq.md b/docs/reference/eq.md index 47a084f..7340fb9 100644 --- a/docs/reference/eq.md +++ b/docs/reference/eq.md @@ -2,23 +2,14 @@ ## eq -Basis Function Combinator +Basis Function -Same as a == b. +Compare the two items on the top of the stack for equality and replace +them with a Boolean value. -Gentzen diagram. - -### Definition - -if not basis. - -### Derivation - -if not basis. - -### Source - -if basis + a b eq + ------------- + Boolean ### Discussion @@ -26,4 +17,10 @@ Lorem ipsum. ### Crosslinks -Lorem ipsum. +[cmp] +[ge] +[gt] +[le] +[lt] +[ne] + diff --git a/docs/reference/mkref/FuncRef.html b/docs/reference/mkref/FuncRef.html index ef560ac..eeb6fb2 100644 --- a/docs/reference/mkref/FuncRef.html +++ b/docs/reference/mkref/FuncRef.html @@ -1036,44 +1036,40 @@ a F a
Basis Function Combinator
-stack [clear] dip
-Gentzen diagram.
+Function
+Put the stack onto the stack replacing the contents of the stack.
+ ... a b c enstacken
+-------------------------
+ [c b a ...]
if not basis.
-if not basis.
-if basis
++ +
Lorem ipsum.
+This is a destructive version of stack. See the note under disenstacken about the apparent but illusory reversal of the stack.
Lorem ipsum.
+stack [unstack] disenstacken
Basis Function Combinator
-Same as a == b.
-Gentzen diagram.
-if not basis.
-if not basis.
-if basis
+Basis Function
+Compare the two items on the top of the stack for equality and replace them with a Boolean value.
+ a b eq
+-------------
+ Boolean
Lorem ipsum.
Lorem ipsum.
+Basis Function Combinator
([a1 ...1] -- a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1084,11 +1080,11 @@ a F aBasis Function Combinator
([a1 a2 ...1] -- a1 a2)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1099,11 +1095,11 @@ a F aBasis Function Combinator
<{} [concat] step
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1115,11 +1111,11 @@ a F aReturn the floor of x as an Integral.
This is the largest integer <= x.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1130,11 +1126,11 @@ a F aBasis Function Combinator
Same as a // b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1145,11 +1141,11 @@ a F aBasis Function Combinator
[i] app2
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1160,11 +1156,11 @@ a F aBasis Function Combinator
([a1 a2 a3 a4 ...1] -- a4)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1175,11 +1171,11 @@ a F aBasis Function Combinator
true [tuck mod dup 0 >] loop pop
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1190,11 +1186,11 @@ a F aBasis Function Combinator
Compiled GCD function.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1205,11 +1201,11 @@ a F aBasis Function Combinator
Same as a >= b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1236,11 +1232,11 @@ a F a == [I] [T] [R [P] i] ifte == [I] [T] [R P] ifteGentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1255,11 +1251,11 @@ a F a ------------------------- aGentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1270,11 +1266,11 @@ a F aBasis Function Combinator
<{} [cons] times
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1285,11 +1281,11 @@ a F aBasis Function Combinator
[stack popd] dip
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1300,11 +1296,11 @@ a F aBasis Function Combinator
Same as a > b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1315,11 +1311,11 @@ a F aBasis Function Combinator
Accepts a quoted symbol on the top of the stack and prints its docs.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1330,11 +1326,11 @@ a F aBasis Function Combinator
[sqr] ii + sqrt
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1347,7 +1343,7 @@ a F a [Q] i
-----------
Q
-combo(i, [list(P)|S], S, Ei, Eo) :- append(P, Ei, Eo).
This is probably the fundamental combinator. You wind up using it in all kinds of places (for example, the x combinator can be defined as dup i.)
Basis Function Combinator
The identity function.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1382,11 +1378,11 @@ a F a ... [else] [then] [...] [if] infra first choice iHas the effect of grabbing a copy of the stack on which to run the if-part using infra.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1399,11 +1395,11 @@ a F a ------------------ ... Q a QGentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1416,7 +1412,7 @@ a F a ... [a b c] [Q] infra
---------------------------
c b a Q [...] swaack
-swons swaack [i] dip swaack
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.
Basis Function Combinator
infra first
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1445,11 +1441,11 @@ a F a[sqr dup mul] inscribe
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1460,11 +1456,11 @@ a F aBasis Function Combinator
Same as a <= b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1482,11 +1478,11 @@ a F a ------------------------ ...Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1497,11 +1493,11 @@ a F aBasis Function Combinator
Same as a << b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1512,11 +1508,11 @@ a F aBasis Function Combinator
Same as a < b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1527,11 +1523,11 @@ a F aBasis Function Combinator
[codireco] ccons
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1542,11 +1538,11 @@ a F aBasis Function Combinator
Run the quoted program on TOS on the items in the list under it, push a new list with the results in place of the program and original list.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1557,11 +1553,11 @@ a F aBasis Function Combinator
Given a list find the maximum.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1572,11 +1568,11 @@ a F aBasis Function Combinator
Given a list find the minimum.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1587,11 +1583,11 @@ a F aBasis Function Combinator
Same as a % b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1605,11 +1601,11 @@ a F aBasis Function Combinator
Same as a * b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1620,11 +1616,11 @@ a F aBasis Function Combinator
Same as a != b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1635,11 +1631,11 @@ a F aBasis Function Combinator
Same as -a.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1650,11 +1646,11 @@ a F aBasis Function Combinator
Same as not a.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1672,18 +1668,18 @@ a F a N !- ---------- N >= 0 true -0 >=
Basis Function Combinator
[nullary] cons
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1696,9 +1692,9 @@ a F a ... [P] nullary
---------------------
... A
-[stack] dip infra first
-... [P] nullary
... [P] [stack] dip infra first
... stack [P] infra first
@@ -1714,11 +1710,11 @@ a F a
Basis Function Combinator
swap at
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1729,11 +1725,11 @@ a F aBasis Function Combinator
Same as a | b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1744,11 +1740,11 @@ a F aBasis Function Combinator
(a2 a1 -- a2 a1 a2)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1759,11 +1755,11 @@ a F aBasis Function Combinator
[i] map
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1780,11 +1776,11 @@ a F a ------------- a+b a-bGentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1795,11 +1791,11 @@ a+b a-bBasis Function Combinator
(a1 --)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1810,11 +1806,11 @@ a+b a-bBasis Function Combinator
(a2 a1 -- a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1825,11 +1821,11 @@ a+b a-bBasis Function Combinator
(a3 a2 a1 -- a2 a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1840,11 +1836,11 @@ a+b a-bBasis Function Combinator
(a2 a1 --)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1855,11 +1851,11 @@ a+b a-bBasis Function Combinator
(a3 a2 a1 -- a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1870,11 +1866,11 @@ a+b a-bBasis Function Combinator
(a4 a3 a2 a1 -- a2 a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1885,11 +1881,11 @@ a+b a-bBasis Function Combinator
pop popop
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1900,11 +1896,11 @@ a+b a-bBasis Function Combinator
Same as a ** b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1915,11 +1911,11 @@ a+b a-bBasis Function Combinator
Decrement TOS.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1942,11 +1938,11 @@ a+b a-b ------------------------------------------ n > 0 n (n-1) [Base] [Recur] primrec RecurGentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1957,11 +1953,11 @@ a+b a-bBasis Function Combinator
1 swap [*] step
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1972,11 +1968,11 @@ a+b a-bBasis Function Combinator
[unit] dip
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -1987,11 +1983,11 @@ a+b a-bBasis Function Combinator
[0 <=] [1 - dup] anamorphism
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2002,11 +1998,11 @@ a+b a-bBasis Function Combinator
unit [down_to_zero] infra
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2017,11 +2013,11 @@ a+b a-bBasis Function Combinator
rest cons
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2041,11 +2037,11 @@ a+b a-b ------------------------ [2 3 1]Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2056,11 +2052,11 @@ a+b a-bBasis Function Combinator
([a1 ...0] -- [...0])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2072,11 +2068,11 @@ a+b a-bReverse the list on the top of the stack. :
reverse == [] swap shunt
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2087,11 +2083,11 @@ a+b a-bBasis Function Combinator
(a1 a2 a3 -- a2 a3 a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2102,11 +2098,11 @@ a+b a-bBasis Function Combinator
(a1 a2 a3 -- a3 a1 a2)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2124,11 +2120,11 @@ a+b a-bRound a number to a given precision in decimal digits.
The return value is an integer if ndigits is omitted or None. Otherwise the return value has the same type as the number. ndigits may be negative.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2139,11 +2135,11 @@ a+b a-bBasis Function Combinator
([a1 a2 ...1] -- [...1])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2154,11 +2150,11 @@ a+b a-bBasis Function Combinator
Same as a >> b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2169,11 +2165,11 @@ a+b a-bBasis Function Combinator
<{} infra
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2184,11 +2180,11 @@ a+b a-bBasis Function Combinator
([a1 a2 ...1] -- a2)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2208,11 +2204,11 @@ a+b a-b BThe sequence can contain more than two items but not fewer. Currently Python semantics are used to evaluate the "truthiness" of the Boolean value (so empty string, zero, etc. are counted as false, etc.)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2223,11 +2219,11 @@ a+b a-bBasis Function Combinator
Print redistribution information.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2238,11 +2234,11 @@ a+b a-bBasis Function Combinator
uncons [swons] dip
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2258,11 +2254,11 @@ a+b a-b --------------------------- [f e d a b c]Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2273,11 +2269,11 @@ a+b a-bBasis Function Combinator
[pop ++] step_zero
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2288,11 +2284,11 @@ a+b a-bBasis Function Combinator
Given a list return it sorted.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2303,11 +2299,11 @@ a+b a-bBasis Function Combinator
[[[abs] ii <=] [[<>] [pop !-] ||] &&] [[!-] [[++]] [[--]] ifte dip] [[pop !-] [--] [++] ifte] ifte
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2318,11 +2314,11 @@ a+b a-bBasis Function Combinator
[drop] [take] clop
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2333,11 +2329,11 @@ a+b a-bBasis Function Combinator
[take reverse] [drop] clop
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2348,11 +2344,11 @@ a+b a-bBasis Function Combinator
dup *
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2363,11 +2359,11 @@ a+b a-bBasis Function Combinator
Return the square root of the number a. Negative numbers return complex roots.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2378,11 +2374,11 @@ a+b a-bBasis Function Combinator
(... -- ... [...])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2393,11 +2389,11 @@ a+b a-bBasis Function Combinator
[stack] dip
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2422,11 +2418,11 @@ a+b a-b ... a . Q [b c] [Q] stepThe step combinator executes the quotation on each member of the list on top of the stack.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2437,11 +2433,11 @@ a+b a-bBasis Function Combinator
0 roll> step
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2452,11 +2448,11 @@ a+b a-bBasis Function Combinator
(... a1 -- ... a1 a1 [...])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2467,11 +2463,11 @@ a+b a-bBasis Function Combinator
(... a2 a1 -- ... a2 a1 a1 a2 [...])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2482,11 +2478,11 @@ a+b a-bBasis Function Combinator
Same as a - b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2497,11 +2493,11 @@ a+b a-bBasis Function Combinator
Increment TOS.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2513,11 +2509,11 @@ a+b a-bGiven a quoted sequence of numbers return the sum. :
sum == 0 swap [+] step
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2528,11 +2524,11 @@ a+b a-bBasis Function Combinator
([...1] -- [...0])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2543,11 +2539,11 @@ a+b a-bBasis Function Combinator
(a1 a2 -- a2 a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2558,11 +2554,11 @@ a+b a-bBasis Function Combinator
[swap] dip
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2573,11 +2569,11 @@ a+b a-bBasis Function Combinator
swap concat
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2588,11 +2584,11 @@ a+b a-bBasis Function Combinator
([...1] a1 -- [a1 ...1])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2603,11 +2599,11 @@ a+b a-bBasis Function Combinator
[i] genrec
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2621,11 +2617,11 @@ a+b a-b ---------------------- [b a]Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2638,7 +2634,7 @@ a+b a-b ... z y x [P] unary
-------------------------
... A
-binary popd
Runs any other quoted function and returns its first result while consuming exactly three items from the stack.
@@ -2649,11 +2645,11 @@ a+b a-bBasis Function Combinator
([a1 a2 a3 ...1] -- a3)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2677,11 +2673,11 @@ a+b a-b ------------------------------------- w/ n > 1 ... . Q (n - 1) [Q] timesGentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2695,11 +2691,11 @@ a+b a-bBasis Function Combinator
(a2 a1 -- a1 a2 a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2712,7 +2708,7 @@ a+b a-b ... x [P] unary
---------------------
... A
-nullary popd
Runs any other quoted function and returns its first result while consuming exactly one item from the stack.
@@ -2725,7 +2721,7 @@ a+b a-b [A ...] uncons
--------------------
A [...]
-func(uncons, Si, So) :- func(cons, So, Si).
This is the inverse of cons.
Basis Function Combinator
Given a list remove duplicate items.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2751,11 +2747,11 @@ a+b a-bBasis Function Combinator
(a1 -- [a1 ])
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2766,11 +2762,11 @@ a+b a-bBasis Function Combinator
[i] dip
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2781,11 +2777,11 @@ a+b a-bBasis Function Combinator
([a1 ...1] -- [...1] a1)
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2796,11 +2792,11 @@ a+b a-bBasis Function Combinator
True if the form on TOS is void otherwise False.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2811,11 +2807,11 @@ a+b a-bBasis Function Combinator
Print warranty information.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2826,11 +2822,11 @@ a+b a-bBasis Function Combinator
swap nulco dupdipd concat loop
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2841,11 +2837,11 @@ a+b a-bBasis Function Combinator
Print all the words in alphabetical order.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2857,7 +2853,7 @@ a+b a-b [F] x
-----------
[F] F
-dup i
The x combinator …
Basis Function Combinator
Same as a ^ b.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
@@ -2881,11 +2877,11 @@ a+b a-bBasis Function Combinator
Replace the two lists on the top of the stack with a list of the pairs from each list. The smallest list sets the length of the result list.
Gentzen diagram.
-if not basis.
-if not basis.
-if basis
Lorem ipsum.
diff --git a/docs/reference/mkref/Functor-Reference.md b/docs/reference/mkref/Functor-Reference.md index b424c7a..97fedfb 100644 --- a/docs/reference/mkref/Functor-Reference.md +++ b/docs/reference/mkref/Functor-Reference.md @@ -1341,53 +1341,43 @@ Run a copy of program `F` under the next item down on the stack. ## enstacken -Basis Function Combinator +Function -stack \[clear\] dip +Put the stack onto the stack replacing the contents of the stack. + + ... a b c enstacken + ------------------------- + [c b a ...] -Gentzen diagram. ### Definition -if not basis. - -### Derivation - -if not basis. - -### Source - -if basis +> [stack] \[[clear]\] [dip] ### Discussion -Lorem ipsum. +This is a destructive version of [stack]. See the note under +[disenstacken] about the apparent but illusory reversal of the stack. ### Crosslinks -Lorem ipsum. +[stack] +[unstack] +[disenstacken] + ------------------------------------------------------------------------ ## eq -Basis Function Combinator +Basis Function -Same as a == b. +Compare the two items on the top of the stack for equality and replace +them with a Boolean value. -Gentzen diagram. - -### Definition - -if not basis. - -### Derivation - -if not basis. - -### Source - -if basis + a b eq + ------------- + Boolean ### Discussion @@ -1395,7 +1385,13 @@ Lorem ipsum. ### Crosslinks -Lorem ipsum. +[cmp] +[ge] +[gt] +[le] +[lt] +[ne] + ------------------------------------------------------------------------