OSDN Git Service

And there are the P's.
authorSimon Forman <sforman@hushmail.com>
Sun, 27 Mar 2022 20:04:42 +0000 (13:04 -0700)
committerSimon Forman <sforman@hushmail.com>
Sun, 27 Mar 2022 20:04:42 +0000 (13:04 -0700)
15 files changed:
docs/reference/mkref/FuncRef.html
docs/reference/mkref/Functor-Reference.md
docs/reference/pam.md
docs/reference/pm.md
docs/reference/pop.md
docs/reference/popd.md
docs/reference/popdd.md
docs/reference/popop.md
docs/reference/popopd.md
docs/reference/popopdd.md
docs/reference/popopop.md
docs/reference/pow.md
docs/reference/pred.md
docs/reference/primrec.md
docs/reference/product.md

index a827cc5..9d4e444 100644 (file)
@@ -1622,276 +1622,233 @@ a F a</code></pre>
 <p><a href="#tuck">tuck</a></p>
 <hr />
 <h2 id="pam">pam</h2>
-<p>Basis Function Combinator</p>
-<p>[i] map</p>
-<p>Gentzen diagram.</p>
+<p>Combinator</p>
+<p>Take a list of quoted functions from the stack and replace it with a list of the <a href="#first">first</a> results from running those functions (on copies of the rest of the stack.)</p>
+<h3 id="example-15">Example</h3>
+<pre><code>   5 7 [[+][-][*][/][%]] pam
+-------------------------------
+      5 7 [12 -2 35 0 5]</code></pre>
 <h3 id="definition-55">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-3">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source">Source</h3>
-<p>if basis</p>
+<blockquote>
+<p>[<a href="#i">i</a>] <a href="#map">map</a></p>
+</blockquote>
 <h3 id="discussion-52">Discussion</h3>
-<p>Lorem ipsum.</p>
+<p>A specialization of <a href="#map">map</a> that runs a list of functions in parallel (if the underlying <a href="#map">map</a> function is so implemented, of course.)</p>
 <h3 id="crosslinks-72">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#map">map</a></p>
 <hr />
 <h2 id="pick">pick</h2>
 <p>See <a href="#getitem">getitem</a>.</p>
 <hr />
 <h2 id="pm">pm</h2>
-<p>Basis Function Combinator</p>
-<p>Plus or minus :</p>
-<pre><code>a b pm
--------------
-a+b a-b</code></pre>
-<p>Gentzen diagram.</p>
+<p>Function</p>
+<p>Plus or minus. Replace two numbers with their sum and difference.</p>
+<pre><code>      a b pm
+-----------------
+   (a+b) (a-b)</code></pre>
 <h3 id="definition-56">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-4">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-1">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-53">Discussion</h3>
-<p>Lorem ipsum.</p>
-<h3 id="crosslinks-73">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p>[+] [-] <a href="#clop">clop</a></p>
+</blockquote>
 <hr />
 <h2 id="pop">pop</h2>
-<p>Basis Function Combinator</p>
-<pre><code>(a1 --)</code></pre>
-<p>Gentzen diagram.</p>
+<p>Basis Function</p>
+<p>Pop the top item from the stack and discard it.</p>
+<pre><code>   a pop
+-----------</code></pre>
+<h3 id="crosslinks-73">Crosslinks</h3>
+<p><a href="#popd">popd</a> <a href="#popdd">popdd</a> <a href="#popop">popop</a> <a href="#popopd">popopd</a> <a href="#popopdd">popopdd</a> <a href="#popopop">popopop</a></p>
+<hr />
+<h2 id="popd">popd</h2>
+<p>Function</p>
+<p><a href="#pop">pop</a> the second item down on the stack.</p>
+<pre><code>   a b popd
+--------------
+      b</code></pre>
 <h3 id="definition-57">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-5">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-2">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-54">Discussion</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p><a href="#swap">swap</a> <a href="#pop">pop</a></p>
+</blockquote>
 <h3 id="crosslinks-74">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#pop">pop</a> <a href="#popdd">popdd</a> <a href="#popop">popop</a> <a href="#popopd">popopd</a> <a href="#popopdd">popopdd</a> <a href="#popopop">popopop</a></p>
 <hr />
-<h2 id="popd">popd</h2>
-<p>Basis Function Combinator</p>
-<pre><code>(a2 a1 -- a1)</code></pre>
-<p>Gentzen diagram.</p>
+<h2 id="popdd">popdd</h2>
+<p>Function</p>
+<p><a href="#pop">pop</a> the third item on the stack.</p>
+<pre><code>   a b c popdd
+-----------------
+       b c</code></pre>
 <h3 id="definition-58">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-6">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-3">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-55">Discussion</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p><a href="#rolldown">rolldown</a> <a href="#pop">pop</a></p>
+</blockquote>
 <h3 id="crosslinks-75">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#pop">pop</a> <a href="#popd">popd</a> <a href="#popop">popop</a> <a href="#popopd">popopd</a> <a href="#popopdd">popopdd</a> <a href="#popopop">popopop</a></p>
 <hr />
-<h2 id="popdd">popdd</h2>
-<p>Basis Function Combinator</p>
-<pre><code>(a3 a2 a1 -- a2 a1)</code></pre>
-<p>Gentzen diagram.</p>
+<h2 id="popop">popop</h2>
+<p>Function</p>
+<p><a href="#pop">pop</a> two items from the stack.</p>
+<pre><code>   a b popop
+---------------</code></pre>
 <h3 id="definition-59">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-7">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-4">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-56">Discussion</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p><a href="#pop">pop</a> <a href="#pop">pop</a></p>
+</blockquote>
 <h3 id="crosslinks-76">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#pop">pop</a> <a href="#popd">popd</a> <a href="#popdd">popdd</a> <a href="#popopd">popopd</a> <a href="#popopdd">popopdd</a> <a href="#popopop">popopop</a></p>
 <hr />
-<h2 id="popop">popop</h2>
-<p>Basis Function Combinator</p>
-<pre><code>(a2 a1 --)</code></pre>
-<p>Gentzen diagram.</p>
+<h2 id="popopd">popopd</h2>
+<p>Function</p>
+<p><a href="#pop">pop</a> the second and third items from the stack.</p>
+<pre><code>   a b c popopd
+------------------
+        c</code></pre>
 <h3 id="definition-60">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-8">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-5">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-57">Discussion</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p><a href="#rollup">rollup</a> <a href="#popop">popop</a></p>
+</blockquote>
 <h3 id="crosslinks-77">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#pop">pop</a> <a href="#popd">popd</a> <a href="#popdd">popdd</a> <a href="#popop">popop</a> <a href="#popopdd">popopdd</a> <a href="#popopop">popopop</a></p>
 <hr />
-<h2 id="popopd">popopd</h2>
-<p>Basis Function Combinator</p>
-<pre><code>(a3 a2 a1 -- a1)</code></pre>
-<p>Gentzen diagram.</p>
+<h2 id="popopdd">popopdd</h2>
+<p>Function</p>
+<pre><code>   a b c d popopdd
+---------------------
+        c d</code></pre>
 <h3 id="definition-61">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-9">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-6">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-58">Discussion</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p>[<a href="#popop">popop</a>] <a href="#dipd">dipd</a></p>
+</blockquote>
 <h3 id="crosslinks-78">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#pop">pop</a> <a href="#popd">popd</a> <a href="#popdd">popdd</a> <a href="#popop">popop</a> <a href="#popopd">popopd</a> <a href="#popopop">popopop</a></p>
 <hr />
-<h2 id="popopdd">popopdd</h2>
-<p>Basis Function Combinator</p>
-<pre><code>(a4 a3 a2 a1 -- a2 a1)</code></pre>
-<p>Gentzen diagram.</p>
+<h2 id="popopop">popopop</h2>
+<p>Function</p>
+<p><a href="#pop">pop</a> three items from the stack.</p>
+<pre><code>   a b c popopop
+-------------------</code></pre>
 <h3 id="definition-62">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-10">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-7">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-59">Discussion</h3>
-<p>Lorem ipsum.</p>
+<blockquote>
+<p><a href="#pop">pop</a> <a href="#popop">popop</a></p>
+</blockquote>
 <h3 id="crosslinks-79">Crosslinks</h3>
-<p>Lorem ipsum.</p>
-<hr />
-<h2 id="popopop">popopop</h2>
-<p>Basis Function Combinator</p>
-<p>pop popop</p>
-<p>Gentzen diagram.</p>
-<h3 id="definition-63">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-11">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-8">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-60">Discussion</h3>
-<p>Lorem ipsum.</p>
-<h3 id="crosslinks-80">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p><a href="#pop">pop</a> <a href="#popd">popd</a> <a href="#popdd">popdd</a> <a href="#popop">popop</a> <a href="#popopd">popopd</a> <a href="#popopdd">popopdd</a></p>
 <hr />
 <h2 id="pow">pow</h2>
-<p>Basis Function Combinator</p>
-<p>Same as a ** b.</p>
-<p>Gentzen diagram.</p>
-<h3 id="definition-64">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-12">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-9">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-61">Discussion</h3>
-<p>Lorem ipsum.</p>
-<h3 id="crosslinks-81">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p>Basis Function</p>
+<p>Take two numbers <code>a</code> and <code>b</code> from the stack and raise <code>a</code> to the <code>n</code>th power. (<code>b</code> is on the top of the stack.)</p>
+<pre><code>   a n pow
+-------------
+    (a&#x207F;)</code></pre>
+<h3 id="example-16">Example</h3>
+<pre><code>   2 [2 3 4 5 6 7 8 9] [pow] map
+-----------------------------------
+    2 [4 8 16 32 64 128 256 512]</code></pre>
 <hr />
 <h2 id="pred">pred</h2>
-<p>Basis Function Combinator</p>
-<p>Decrement TOS.</p>
-<p>Gentzen diagram.</p>
-<h3 id="definition-65">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-13">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-10">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-62">Discussion</h3>
-<p>Lorem ipsum.</p>
-<h3 id="crosslinks-82">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p>Function</p>
+<p>Predecessor. Decrement TOS.</p>
+<h3 id="definition-63">Definition</h3>
+<blockquote>
+<p>1 -</p>
+</blockquote>
+<h3 id="crosslinks-80">Crosslinks</h3>
+<p><a href="#succ">succ</a></p>
 <hr />
 <h2 id="primrec">primrec</h2>
-<p>Basis Function Combinator</p>
-<p>From the "Overview of the language JOY":</p>
-<p>&gt; The primrec combinator expects two quoted programs in addition to a data parameter. For an integer data parameter it works like this: If the data parameter is zero, then the first quotation has to produce the value to be returned. If the data parameter is positive then the second has to combine the data parameter with the result of applying the function to its predecessor.:</p>
-<pre><code>5  [1]  [*]  primrec</code></pre>
-<p>&gt; Then primrec tests whether the top element on the stack (initially the 5) is equal to zero. If it is, it pops it off and executes one of the quotations, the [1] which leaves 1 on the stack as the result. Otherwise it pushes a decremented copy of the top element and recurses. On the way back from the recursion it uses the other quotation, [*], to multiply what is now a factorial on top of the stack by the second element on the stack.:</p>
-<pre><code>n [Base] [Recur] primrec
-
-   0 [Base] [Recur] primrec
+<p>Combinator</p>
+<p>From the <a href="https://www.kevinalbrecht.com/code/joy-mirror/j00ovr.html">&#x201C;Overview of the language JOY&#x201D;</a></p>
+<blockquote>
+<p>The primrec combinator expects two quoted programs in addition to a data parameter. For an integer data parameter it works like this: If the data parameter is zero, then the first quotation has to produce the value to be returned. If the data parameter is positive then the second has to combine the data parameter with the result of applying the function to its predecessor.</p>
+</blockquote>
+<blockquote>
+<p>5 [1] [*] primrec</p>
+</blockquote>
+<blockquote>
+<p>Then primrec tests whether the top element on the stack (initially the 5) is equal to zero. If it is, it pops it off and executes one of the quotations, the [1] which leaves 1 on the stack as the result. Otherwise it pushes a decremented copy of the top element and recurses. On the way back from the recursion it uses the other quotation, [*], to multiply what is now a factorial on top of the stack by the second element on the stack.</p>
+</blockquote>
+<pre><code>   0 [Base] [Recur] primrec
 ------------------------------
       Base
 
-     n [Base] [Recur] primrec
+         n [Base] [Recur] primrec
 ------------------------------------------ n &gt; 0
    n (n-1) [Base] [Recur] primrec Recur</code></pre>
-<p>Gentzen diagram.</p>
-<h3 id="definition-66">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-14">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-11">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-63">Discussion</h3>
-<p>Lorem ipsum.</p>
-<h3 id="crosslinks-83">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<h3 id="discussion-53">Discussion</h3>
+<p>Simple and useful specialization of the <a href="#genrec">genrec</a> combinator from the <a href="https://www.kevinalbrecht.com/code/joy-mirror/index.html">original Joy system</a>.</p>
+<h3 id="crosslinks-81">Crosslinks</h3>
+<p><a href="#genrec">genrec</a> <a href="#tailrec">tailrec</a></p>
 <hr />
 <h2 id="product">product</h2>
-<p>Basis Function Combinator</p>
-<p>1 swap [*] step</p>
-<p>Gentzen diagram.</p>
-<h3 id="definition-67">Definition</h3>
-<p>if not basis.</p>
-<h3 id="derivation-15">Derivation</h3>
-<p>if not basis.</p>
-<h3 id="source-12">Source</h3>
-<p>if basis</p>
-<h3 id="discussion-64">Discussion</h3>
-<p>Lorem ipsum.</p>
-<h3 id="crosslinks-84">Crosslinks</h3>
-<p>Lorem ipsum.</p>
+<p>Function</p>
+<p>Just as <a href="#sum">sum</a> sums a list of numbers, this function multiplies them together.</p>
+<h3 id="definition-64">Definition</h3>
+<blockquote>
+<p>1 <a href="#swap">swap</a> [<a href="#mul">mul</a>] <a href="#step">step</a></p>
+</blockquote>
+<p>Or,</p>
+<blockquote>
+<p>[1] [<a href="#mul">mul</a>] <a href="#primrec">primrec</a></p>
+</blockquote>
 <hr />
 <h2 id="quoted">quoted</h2>
 <p>Basis Function Combinator</p>
 <p>[unit] dip</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-68">Definition</h3>
+<h3 id="definition-65">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-16">Derivation</h3>
+<h3 id="derivation-3">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-13">Source</h3>
+<h3 id="source">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-65">Discussion</h3>
+<h3 id="discussion-54">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-85">Crosslinks</h3>
+<h3 id="crosslinks-82">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="range">range</h2>
 <p>Basis Function Combinator</p>
 <p>[0 &lt;=] [1 - dup] anamorphism</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-69">Definition</h3>
+<h3 id="definition-66">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-17">Derivation</h3>
+<h3 id="derivation-4">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-14">Source</h3>
+<h3 id="source-1">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-66">Discussion</h3>
+<h3 id="discussion-55">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-86">Crosslinks</h3>
+<h3 id="crosslinks-83">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="range_to_zero">range_to_zero</h2>
 <p>Basis Function Combinator</p>
 <p>unit [down_to_zero] infra</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-70">Definition</h3>
+<h3 id="definition-67">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-18">Derivation</h3>
+<h3 id="derivation-5">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-15">Source</h3>
+<h3 id="source-2">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-67">Discussion</h3>
+<h3 id="discussion-56">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-87">Crosslinks</h3>
+<h3 id="crosslinks-84">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="reco">reco</h2>
 <p>Basis Function Combinator</p>
 <p>rest cons</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-71">Definition</h3>
+<h3 id="definition-68">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-19">Derivation</h3>
+<h3 id="derivation-6">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-16">Source</h3>
+<h3 id="source-3">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-68">Discussion</h3>
+<h3 id="discussion-57">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-88">Crosslinks</h3>
+<h3 id="crosslinks-85">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="rem">rem</h2>
@@ -1907,30 +1864,30 @@ a+b a-b</code></pre>
 ------------------------
   [2 3 1]</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-72">Definition</h3>
+<h3 id="definition-69">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-20">Derivation</h3>
+<h3 id="derivation-7">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-17">Source</h3>
+<h3 id="source-4">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-69">Discussion</h3>
+<h3 id="discussion-58">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-89">Crosslinks</h3>
+<h3 id="crosslinks-86">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="rest">rest</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([a1 ...0] -- [...0])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-73">Definition</h3>
+<h3 id="definition-70">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-21">Derivation</h3>
+<h3 id="derivation-8">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-18">Source</h3>
+<h3 id="source-5">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-70">Discussion</h3>
+<h3 id="discussion-59">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-90">Crosslinks</h3>
+<h3 id="crosslinks-87">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="reverse">reverse</h2>
@@ -1938,45 +1895,45 @@ a+b a-b</code></pre>
 <p>Reverse the list on the top of the stack. :</p>
 <pre><code>reverse == [] swap shunt</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-74">Definition</h3>
+<h3 id="definition-71">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-22">Derivation</h3>
+<h3 id="derivation-9">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-19">Source</h3>
+<h3 id="source-6">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-71">Discussion</h3>
+<h3 id="discussion-60">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-91">Crosslinks</h3>
+<h3 id="crosslinks-88">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="rolldown">rolldown</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(a1 a2 a3 -- a2 a3 a1)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-75">Definition</h3>
+<h3 id="definition-72">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-23">Derivation</h3>
+<h3 id="derivation-10">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-20">Source</h3>
+<h3 id="source-7">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-72">Discussion</h3>
+<h3 id="discussion-61">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-92">Crosslinks</h3>
+<h3 id="crosslinks-89">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="rollup">rollup</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(a1 a2 a3 -- a3 a1 a2)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-76">Definition</h3>
+<h3 id="definition-73">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-24">Derivation</h3>
+<h3 id="derivation-11">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-21">Source</h3>
+<h3 id="source-8">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-73">Discussion</h3>
+<h3 id="discussion-62">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-93">Crosslinks</h3>
+<h3 id="crosslinks-90">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="roll">roll&gt;</h2>
@@ -1990,30 +1947,30 @@ a+b a-b</code></pre>
 <p>Round a number to a given precision in decimal digits.</p>
 <p>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.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-77">Definition</h3>
+<h3 id="definition-74">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-25">Derivation</h3>
+<h3 id="derivation-12">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-22">Source</h3>
+<h3 id="source-9">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-74">Discussion</h3>
+<h3 id="discussion-63">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-94">Crosslinks</h3>
+<h3 id="crosslinks-91">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="rrest">rrest</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([a1 a2 ...1] -- [...1])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-78">Definition</h3>
+<h3 id="definition-75">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-26">Derivation</h3>
+<h3 id="derivation-13">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-23">Source</h3>
+<h3 id="source-10">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-75">Discussion</h3>
+<h3 id="discussion-64">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-95">Crosslinks</h3>
+<h3 id="crosslinks-92">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="rshift">rshift</h2>
@@ -2022,37 +1979,37 @@ a+b a-b</code></pre>
 <pre><code>   a n rshift
 ----------------
      (a&#x2215;2&#x207F;)</code></pre>
-<h3 id="crosslinks-96">Crosslinks</h3>
+<h3 id="crosslinks-93">Crosslinks</h3>
 <p><a href="#lshift">lshift</a></p>
 <hr />
 <h2 id="run">run</h2>
 <p>Basis Function Combinator</p>
 <p>&lt;{} infra</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-79">Definition</h3>
+<h3 id="definition-76">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-27">Derivation</h3>
+<h3 id="derivation-14">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-24">Source</h3>
+<h3 id="source-11">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-76">Discussion</h3>
+<h3 id="discussion-65">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-97">Crosslinks</h3>
+<h3 id="crosslinks-94">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="second">second</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([a1 a2 ...1] -- a2)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-80">Definition</h3>
+<h3 id="definition-77">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-28">Derivation</h3>
+<h3 id="derivation-15">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-25">Source</h3>
+<h3 id="source-12">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-77">Discussion</h3>
+<h3 id="discussion-66">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-98">Crosslinks</h3>
+<h3 id="crosslinks-95">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="select">select</h2>
@@ -2068,45 +2025,45 @@ a+b a-b</code></pre>
    B</code></pre>
 <p>The 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.)</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-81">Definition</h3>
+<h3 id="definition-78">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-29">Derivation</h3>
+<h3 id="derivation-16">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-26">Source</h3>
+<h3 id="source-13">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-78">Discussion</h3>
+<h3 id="discussion-67">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-99">Crosslinks</h3>
+<h3 id="crosslinks-96">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="sharing">sharing</h2>
 <p>Basis Function Combinator</p>
 <p>Print redistribution information.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-82">Definition</h3>
+<h3 id="definition-79">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-30">Derivation</h3>
+<h3 id="derivation-17">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-27">Source</h3>
+<h3 id="source-14">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-79">Discussion</h3>
+<h3 id="discussion-68">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-100">Crosslinks</h3>
+<h3 id="crosslinks-97">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="shift">shift</h2>
 <p>Basis Function Combinator</p>
 <p>uncons [swons] dip</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-83">Definition</h3>
+<h3 id="definition-80">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-31">Derivation</h3>
+<h3 id="derivation-18">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-28">Source</h3>
+<h3 id="source-15">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-80">Discussion</h3>
+<h3 id="discussion-69">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-101">Crosslinks</h3>
+<h3 id="crosslinks-98">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="shunt">shunt</h2>
@@ -2118,150 +2075,150 @@ a+b a-b</code></pre>
 ---------------------------
        [f e d a b c] </code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-84">Definition</h3>
+<h3 id="definition-81">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-32">Derivation</h3>
+<h3 id="derivation-19">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-29">Source</h3>
+<h3 id="source-16">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-81">Discussion</h3>
+<h3 id="discussion-70">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-102">Crosslinks</h3>
+<h3 id="crosslinks-99">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="size">size</h2>
 <p>Basis Function Combinator</p>
 <p>[pop ++] step_zero</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-85">Definition</h3>
+<h3 id="definition-82">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-33">Derivation</h3>
+<h3 id="derivation-20">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-30">Source</h3>
+<h3 id="source-17">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-82">Discussion</h3>
+<h3 id="discussion-71">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-103">Crosslinks</h3>
+<h3 id="crosslinks-100">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="sort">sort</h2>
 <p>Basis Function Combinator</p>
 <p>Given a list return it sorted.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-86">Definition</h3>
+<h3 id="definition-83">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-34">Derivation</h3>
+<h3 id="derivation-21">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-31">Source</h3>
+<h3 id="source-18">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-83">Discussion</h3>
+<h3 id="discussion-72">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-104">Crosslinks</h3>
+<h3 id="crosslinks-101">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="spiral_next">spiral_next</h2>
 <p>Basis Function Combinator</p>
 <p>[[[abs] ii &lt;=] [[&lt;&gt;] [pop !-] ||] &amp;&amp;] [[!-] [[++]] [[--]] ifte dip] [[pop !-] [--] [++] ifte] ifte</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-87">Definition</h3>
+<h3 id="definition-84">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-35">Derivation</h3>
+<h3 id="derivation-22">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-32">Source</h3>
+<h3 id="source-19">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-84">Discussion</h3>
+<h3 id="discussion-73">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-105">Crosslinks</h3>
+<h3 id="crosslinks-102">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="split_at">split_at</h2>
 <p>Basis Function Combinator</p>
 <p>[drop] [take] clop</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-88">Definition</h3>
+<h3 id="definition-85">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-36">Derivation</h3>
+<h3 id="derivation-23">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-33">Source</h3>
+<h3 id="source-20">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-85">Discussion</h3>
+<h3 id="discussion-74">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-106">Crosslinks</h3>
+<h3 id="crosslinks-103">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="split_list">split_list</h2>
 <p>Basis Function Combinator</p>
 <p>[take reverse] [drop] clop</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-89">Definition</h3>
+<h3 id="definition-86">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-37">Derivation</h3>
+<h3 id="derivation-24">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-34">Source</h3>
+<h3 id="source-21">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-86">Discussion</h3>
+<h3 id="discussion-75">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-107">Crosslinks</h3>
+<h3 id="crosslinks-104">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="sqr">sqr</h2>
 <p>Basis Function Combinator</p>
 <p>dup *</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-90">Definition</h3>
+<h3 id="definition-87">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-38">Derivation</h3>
+<h3 id="derivation-25">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-35">Source</h3>
+<h3 id="source-22">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-87">Discussion</h3>
+<h3 id="discussion-76">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-108">Crosslinks</h3>
+<h3 id="crosslinks-105">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="sqrt">sqrt</h2>
 <p>Basis Function Combinator</p>
 <p>Return the square root of the number a. Negative numbers return complex roots.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-91">Definition</h3>
+<h3 id="definition-88">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-39">Derivation</h3>
+<h3 id="derivation-26">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-36">Source</h3>
+<h3 id="source-23">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-88">Discussion</h3>
+<h3 id="discussion-77">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-109">Crosslinks</h3>
+<h3 id="crosslinks-106">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="stack">stack</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(... -- ... [...])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-92">Definition</h3>
+<h3 id="definition-89">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-40">Derivation</h3>
+<h3 id="derivation-27">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-37">Source</h3>
+<h3 id="source-24">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-89">Discussion</h3>
+<h3 id="discussion-78">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-110">Crosslinks</h3>
+<h3 id="crosslinks-107">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="stackd">stackd</h2>
 <p>Basis Function Combinator</p>
 <p>[stack] dip</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-93">Definition</h3>
+<h3 id="definition-90">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-41">Derivation</h3>
+<h3 id="derivation-28">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-38">Source</h3>
+<h3 id="source-25">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-90">Discussion</h3>
+<h3 id="discussion-79">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-111">Crosslinks</h3>
+<h3 id="crosslinks-108">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="step">step</h2>
@@ -2282,90 +2239,90 @@ a+b a-b</code></pre>
       ... a . Q [b c] [Q] step</code></pre>
 <p>The step combinator executes the quotation on each member of the list on top of the stack.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-94">Definition</h3>
+<h3 id="definition-91">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-42">Derivation</h3>
+<h3 id="derivation-29">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-39">Source</h3>
+<h3 id="source-26">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-91">Discussion</h3>
+<h3 id="discussion-80">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-112">Crosslinks</h3>
+<h3 id="crosslinks-109">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="step_zero">step_zero</h2>
 <p>Basis Function Combinator</p>
 <p>0 roll&gt; step</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-95">Definition</h3>
+<h3 id="definition-92">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-43">Derivation</h3>
+<h3 id="derivation-30">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-40">Source</h3>
+<h3 id="source-27">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-92">Discussion</h3>
+<h3 id="discussion-81">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-113">Crosslinks</h3>
+<h3 id="crosslinks-110">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="stuncons">stuncons</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(... a1 -- ... a1 a1 [...])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-96">Definition</h3>
+<h3 id="definition-93">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-44">Derivation</h3>
+<h3 id="derivation-31">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-41">Source</h3>
+<h3 id="source-28">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-93">Discussion</h3>
+<h3 id="discussion-82">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-114">Crosslinks</h3>
+<h3 id="crosslinks-111">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="stununcons">stununcons</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(... a2 a1 -- ... a2 a1 a1 a2 [...])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-97">Definition</h3>
+<h3 id="definition-94">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-45">Derivation</h3>
+<h3 id="derivation-32">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-42">Source</h3>
+<h3 id="source-29">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-94">Discussion</h3>
+<h3 id="discussion-83">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-115">Crosslinks</h3>
+<h3 id="crosslinks-112">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="sub">sub</h2>
 <p>Basis Function Combinator</p>
 <p>Same as a - b.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-98">Definition</h3>
+<h3 id="definition-95">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-46">Derivation</h3>
+<h3 id="derivation-33">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-43">Source</h3>
+<h3 id="source-30">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-95">Discussion</h3>
+<h3 id="discussion-84">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-116">Crosslinks</h3>
+<h3 id="crosslinks-113">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="succ">succ</h2>
 <p>Basis Function Combinator</p>
 <p>Increment TOS.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-99">Definition</h3>
+<h3 id="definition-96">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-47">Derivation</h3>
+<h3 id="derivation-34">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-44">Source</h3>
+<h3 id="source-31">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-96">Discussion</h3>
+<h3 id="discussion-85">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-117">Crosslinks</h3>
+<h3 id="crosslinks-114">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="sum">sum</h2>
@@ -2373,105 +2330,105 @@ a+b a-b</code></pre>
 <p>Given a quoted sequence of numbers return the sum. :</p>
 <pre><code>sum == 0 swap [+] step</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-100">Definition</h3>
+<h3 id="definition-97">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-48">Derivation</h3>
+<h3 id="derivation-35">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-45">Source</h3>
+<h3 id="source-32">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-97">Discussion</h3>
+<h3 id="discussion-86">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-118">Crosslinks</h3>
+<h3 id="crosslinks-115">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="swaack">swaack</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([...1] -- [...0])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-101">Definition</h3>
+<h3 id="definition-98">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-49">Derivation</h3>
+<h3 id="derivation-36">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-46">Source</h3>
+<h3 id="source-33">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-98">Discussion</h3>
+<h3 id="discussion-87">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-119">Crosslinks</h3>
+<h3 id="crosslinks-116">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="swap">swap</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(a1 a2 -- a2 a1)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-102">Definition</h3>
+<h3 id="definition-99">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-50">Derivation</h3>
+<h3 id="derivation-37">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-47">Source</h3>
+<h3 id="source-34">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-99">Discussion</h3>
+<h3 id="discussion-88">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-120">Crosslinks</h3>
+<h3 id="crosslinks-117">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="swapd">swapd</h2>
 <p>Basis Function Combinator</p>
 <p>[swap] dip</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-103">Definition</h3>
+<h3 id="definition-100">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-51">Derivation</h3>
+<h3 id="derivation-38">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-48">Source</h3>
+<h3 id="source-35">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-100">Discussion</h3>
+<h3 id="discussion-89">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-121">Crosslinks</h3>
+<h3 id="crosslinks-118">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="swoncat">swoncat</h2>
 <p>Basis Function Combinator</p>
 <p>swap concat</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-104">Definition</h3>
+<h3 id="definition-101">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-52">Derivation</h3>
+<h3 id="derivation-39">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-49">Source</h3>
+<h3 id="source-36">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-101">Discussion</h3>
+<h3 id="discussion-90">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-122">Crosslinks</h3>
+<h3 id="crosslinks-119">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="swons">swons</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([...1] a1 -- [a1 ...1])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-105">Definition</h3>
+<h3 id="definition-102">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-53">Derivation</h3>
+<h3 id="derivation-40">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-50">Source</h3>
+<h3 id="source-37">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-102">Discussion</h3>
+<h3 id="discussion-91">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-123">Crosslinks</h3>
+<h3 id="crosslinks-120">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="tailrec">tailrec</h2>
 <p>Basis Function Combinator</p>
 <p>[i] genrec</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-106">Definition</h3>
+<h3 id="definition-103">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-54">Derivation</h3>
+<h3 id="derivation-41">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-51">Source</h3>
+<h3 id="source-38">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-103">Discussion</h3>
+<h3 id="discussion-92">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-124">Crosslinks</h3>
+<h3 id="crosslinks-121">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="take">take</h2>
@@ -2481,15 +2438,15 @@ a+b a-b</code></pre>
 ----------------------
     [b a]</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-107">Definition</h3>
+<h3 id="definition-104">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-55">Derivation</h3>
+<h3 id="derivation-42">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-52">Source</h3>
+<h3 id="source-39">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-104">Discussion</h3>
+<h3 id="discussion-93">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-125">Crosslinks</h3>
+<h3 id="crosslinks-122">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="ternary">ternary</h2>
@@ -2498,26 +2455,26 @@ a+b a-b</code></pre>
 <pre><code>   ... z y x [P] unary
 -------------------------
          ... A</code></pre>
-<h3 id="definition-108">Definition</h3>
+<h3 id="definition-105">Definition</h3>
 <pre><code>binary popd</code></pre>
-<h3 id="discussion-105">Discussion</h3>
+<h3 id="discussion-94">Discussion</h3>
 <p>Runs any other quoted function and returns its first result while consuming exactly three items from the stack.</p>
-<h3 id="crosslinks-126">Crosslinks</h3>
+<h3 id="crosslinks-123">Crosslinks</h3>
 <p><a href="#binary">binary</a> <a href="#nullary">nullary</a> <a href="#unary">unary</a></p>
 <hr />
 <h2 id="third">third</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([a1 a2 a3 ...1] -- a3)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-109">Definition</h3>
+<h3 id="definition-106">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-56">Derivation</h3>
+<h3 id="derivation-43">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-53">Source</h3>
+<h3 id="source-40">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-106">Discussion</h3>
+<h3 id="discussion-95">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-127">Crosslinks</h3>
+<h3 id="crosslinks-124">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="times">times</h2>
@@ -2537,15 +2494,15 @@ a+b a-b</code></pre>
 -------------------------------------  w/ n &gt; 1
   ... . Q (n - 1) [Q] times</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-110">Definition</h3>
+<h3 id="definition-107">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-57">Derivation</h3>
+<h3 id="derivation-44">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-54">Source</h3>
+<h3 id="source-41">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-107">Discussion</h3>
+<h3 id="discussion-96">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-128">Crosslinks</h3>
+<h3 id="crosslinks-125">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="truthy">truthy</h2>
@@ -2555,15 +2512,15 @@ a+b a-b</code></pre>
 <p>Basis Function Combinator</p>
 <pre><code>(a2 a1 -- a1 a2 a1)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-111">Definition</h3>
+<h3 id="definition-108">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-58">Derivation</h3>
+<h3 id="derivation-45">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-55">Source</h3>
+<h3 id="source-42">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-108">Discussion</h3>
+<h3 id="discussion-97">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-129">Crosslinks</h3>
+<h3 id="crosslinks-126">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="unary">unary</h2>
@@ -2572,11 +2529,11 @@ a+b a-b</code></pre>
 <pre><code>   ... x [P] unary
 ---------------------
        ... A</code></pre>
-<h3 id="definition-112">Definition</h3>
+<h3 id="definition-109">Definition</h3>
 <pre><code>nullary popd</code></pre>
-<h3 id="discussion-109">Discussion</h3>
+<h3 id="discussion-98">Discussion</h3>
 <p>Runs any other quoted function and returns its first result while consuming exactly one item from the stack.</p>
-<h3 id="crosslinks-130">Crosslinks</h3>
+<h3 id="crosslinks-127">Crosslinks</h3>
 <p><a href="#binary">binary</a> <a href="#nullary">nullary</a> <a href="#ternary">ternary</a></p>
 <hr />
 <h2 id="uncons">uncons</h2>
@@ -2585,131 +2542,131 @@ a+b a-b</code></pre>
 <pre><code>   [A ...] uncons
 --------------------
       A [...]</code></pre>
-<h3 id="source-56">Source</h3>
+<h3 id="source-43">Source</h3>
 <pre><code>func(uncons, Si, So) :- func(cons, So, Si).</code></pre>
-<h3 id="discussion-110">Discussion</h3>
+<h3 id="discussion-99">Discussion</h3>
 <p>This is the inverse of <code>cons</code>.</p>
-<h3 id="crosslinks-131">Crosslinks</h3>
+<h3 id="crosslinks-128">Crosslinks</h3>
 <p><a href="#cons">cons</a></p>
 <hr />
 <h2 id="unique">unique</h2>
 <p>Basis Function Combinator</p>
 <p>Given a list remove duplicate items.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-113">Definition</h3>
+<h3 id="definition-110">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-59">Derivation</h3>
+<h3 id="derivation-46">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-57">Source</h3>
+<h3 id="source-44">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-111">Discussion</h3>
+<h3 id="discussion-100">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-132">Crosslinks</h3>
+<h3 id="crosslinks-129">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="unit">unit</h2>
 <p>Basis Function Combinator</p>
 <pre><code>(a1 -- [a1 ])</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-114">Definition</h3>
+<h3 id="definition-111">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-60">Derivation</h3>
+<h3 id="derivation-47">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-58">Source</h3>
+<h3 id="source-45">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-112">Discussion</h3>
+<h3 id="discussion-101">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-133">Crosslinks</h3>
+<h3 id="crosslinks-130">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="unquoted">unquoted</h2>
 <p>Basis Function Combinator</p>
 <p>[i] dip</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-115">Definition</h3>
+<h3 id="definition-112">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-61">Derivation</h3>
+<h3 id="derivation-48">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-59">Source</h3>
+<h3 id="source-46">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-113">Discussion</h3>
+<h3 id="discussion-102">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-134">Crosslinks</h3>
+<h3 id="crosslinks-131">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="unswons">unswons</h2>
 <p>Basis Function Combinator</p>
 <pre><code>([a1 ...1] -- [...1] a1)</code></pre>
 <p>Gentzen diagram.</p>
-<h3 id="definition-116">Definition</h3>
+<h3 id="definition-113">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-62">Derivation</h3>
+<h3 id="derivation-49">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-60">Source</h3>
+<h3 id="source-47">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-114">Discussion</h3>
+<h3 id="discussion-103">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-135">Crosslinks</h3>
+<h3 id="crosslinks-132">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="void">void</h2>
 <p>Basis Function Combinator</p>
 <p>True if the form on TOS is void otherwise False.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-117">Definition</h3>
+<h3 id="definition-114">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-63">Derivation</h3>
+<h3 id="derivation-50">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-61">Source</h3>
+<h3 id="source-48">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-115">Discussion</h3>
+<h3 id="discussion-104">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-136">Crosslinks</h3>
+<h3 id="crosslinks-133">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="warranty">warranty</h2>
 <p>Basis Function Combinator</p>
 <p>Print warranty information.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-118">Definition</h3>
+<h3 id="definition-115">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-64">Derivation</h3>
+<h3 id="derivation-51">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-62">Source</h3>
+<h3 id="source-49">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-116">Discussion</h3>
+<h3 id="discussion-105">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-137">Crosslinks</h3>
+<h3 id="crosslinks-134">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="while">while</h2>
 <p>Basis Function Combinator</p>
 <p>swap nulco dupdipd concat loop</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-119">Definition</h3>
+<h3 id="definition-116">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-65">Derivation</h3>
+<h3 id="derivation-52">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-63">Source</h3>
+<h3 id="source-50">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-117">Discussion</h3>
+<h3 id="discussion-106">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-138">Crosslinks</h3>
+<h3 id="crosslinks-135">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="words">words</h2>
 <p>Basis Function Combinator</p>
 <p>Print all the words in alphabetical order.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-120">Definition</h3>
+<h3 id="definition-117">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-66">Derivation</h3>
+<h3 id="derivation-53">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-64">Source</h3>
+<h3 id="source-51">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-118">Discussion</h3>
+<h3 id="discussion-107">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-139">Crosslinks</h3>
+<h3 id="crosslinks-136">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="x">x</h2>
@@ -2717,39 +2674,39 @@ a+b a-b</code></pre>
 <pre><code>   [F] x
 -----------
    [F] F</code></pre>
-<h3 id="definition-121">Definition</h3>
+<h3 id="definition-118">Definition</h3>
 <pre><code>dup i</code></pre>
-<h3 id="discussion-119">Discussion</h3>
+<h3 id="discussion-108">Discussion</h3>
 <p>The <code>x</code> combinator &#x2026;</p>
 <hr />
 <h2 id="xor">xor</h2>
 <p>Basis Function Combinator</p>
 <p>Same as a ^ b.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-122">Definition</h3>
+<h3 id="definition-119">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-67">Derivation</h3>
+<h3 id="derivation-54">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-65">Source</h3>
+<h3 id="source-52">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-120">Discussion</h3>
+<h3 id="discussion-109">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-140">Crosslinks</h3>
+<h3 id="crosslinks-137">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 <hr />
 <h2 id="zip">zip</h2>
 <p>Basis Function Combinator</p>
 <p>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.</p>
 <p>Gentzen diagram.</p>
-<h3 id="definition-123">Definition</h3>
+<h3 id="definition-120">Definition</h3>
 <p>if not basis.</p>
-<h3 id="derivation-68">Derivation</h3>
+<h3 id="derivation-55">Derivation</h3>
 <p>if not basis.</p>
-<h3 id="source-66">Source</h3>
+<h3 id="source-53">Source</h3>
 <p>if basis</p>
-<h3 id="discussion-121">Discussion</h3>
+<h3 id="discussion-110">Discussion</h3>
 <p>Lorem ipsum.</p>
-<h3 id="crosslinks-141">Crosslinks</h3>
+<h3 id="crosslinks-138">Crosslinks</h3>
 <p>Lorem ipsum.</p>
 </body>
 </html>
index e5b7b59..394c5d0 100644 (file)
@@ -2479,31 +2479,31 @@ A fine old word from Forth.
 
 ## pam
 
-Basis Function Combinator
-
-\[i\] map
-
-Gentzen diagram.
-
-### Definition
+Combinator
 
-if not basis.
+Take a list of quoted functions from the stack and replace it with a list
+of the [first] results from running those functions (on copies of the
+rest of the stack.)
 
-### Derivation
+### Example
 
-if not basis.
+       5 7 [[+][-][*][/][%]] pam
+    -------------------------------
+          5 7 [12 -2 35 0 5]
 
-### Source
+### Definition
 
-if basis
+> \[[i]\] [map]
 
 ### Discussion
 
-Lorem ipsum.
+A specialization of [map] that runs a list of functions in parallel (if
+the underlying [map] function is so implemented, of course.)
 
 ### Crosslinks
 
-Lorem ipsum.
+[map]
+
 
 --------------
 
@@ -2516,392 +2516,292 @@ See [getitem](#getitem).
 
 ## pm
 
-Basis Function Combinator
-
-Plus or minus :
+Function
 
-    a b pm
-    -------------
-    a+b a-b
+Plus or minus.  Replace two numbers with their sum and difference.
 
-Gentzen diagram.
+          a b pm
+    -----------------
+       (a+b) (a-b)
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
+> \[+\] \[-\] [clop]
 
-if basis
-
-### Discussion
-
-Lorem ipsum.
-
-### Crosslinks
-
-Lorem ipsum.
 
 ------------------------------------------------------------------------
 
 ## pop
 
-Basis Function Combinator
-
-    (a1 --)
-
-Gentzen diagram.
-
-### Definition
-
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
+Basis Function
 
-### Discussion
+Pop the top item from the stack and discard it.
 
-Lorem ipsum.
+       a pop
+    -----------
 
 ### Crosslinks
 
-Lorem ipsum.
+[popd]
+[popdd]
+[popop]
+[popopd]
+[popopdd]
+[popopop]
+
 
 ------------------------------------------------------------------------
 
 ## popd
 
-Basis Function Combinator
+Function
 
-    (a2 a1 -- a1)
+[pop] the second item down on the stack.
 
-Gentzen diagram.
+       a b popd
+    --------------
+          b
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [swap] [pop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popdd]
+[popop]
+[popopd]
+[popopdd]
+[popopop]
+
 
 ------------------------------------------------------------------------
 
 ## popdd
 
-Basis Function Combinator
+Function
 
-    (a3 a2 a1 -- a2 a1)
+[pop] the third item on the stack.
 
-Gentzen diagram.
+       a b c popdd
+    -----------------
+           b c
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [rolldown] [pop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popop]
+[popopd]
+[popopdd]
+[popopop]
+
 
 ------------------------------------------------------------------------
 
 ## popop
 
-Basis Function Combinator
+Function
 
-    (a2 a1 --)
+[pop] two items from the stack.
 
-Gentzen diagram.
+       a b popop
+    ---------------
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [pop] [pop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popopd]
+[popopdd]
+[popopop]
+
 
 ------------------------------------------------------------------------
 
 ## popopd
 
-Basis Function Combinator
+Function
 
-    (a3 a2 a1 -- a1)
+[pop] the second and third items from the stack.
 
-Gentzen diagram.
+       a b c popopd
+    ------------------
+            c
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [rollup] [popop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popop]
+[popopdd]
+[popopop]
+
 
 ------------------------------------------------------------------------
 
 ## popopdd
 
-Basis Function Combinator
-
-    (a4 a3 a2 a1 -- a2 a1)
+Function
 
-Gentzen diagram.
+       a b c d popopdd
+    ---------------------
+            c d
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> \[[popop]\] [dipd]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popop]
+[popopd]
+[popopop]
+
 
 ------------------------------------------------------------------------
 
 ## popopop
 
-Basis Function Combinator
+Function
 
-pop popop
+[pop] three items from the stack.
 
-Gentzen diagram.
+       a b c popopop
+    -------------------
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [pop] [popop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popop]
+[popopd]
+[popopdd]
+
 
 ------------------------------------------------------------------------
 
 ## pow
 
-Basis Function Combinator
-
-Same as a \*\* b.
-
-Gentzen diagram.
-
-### Definition
-
-if not basis.
-
-### Derivation
-
-if not basis.
+Basis Function
 
-### Source
+Take two numbers `a` and `b` from the stack and raise `a` to the `n`th
+power.  (`b` is on the top of the stack.)
 
-if basis
-
-### Discussion
+       a n pow
+    -------------
+        (aⁿ)
 
-Lorem ipsum.
+### Example
 
-### Crosslinks
+       2 [2 3 4 5 6 7 8 9] [pow] map
+    -----------------------------------
+        2 [4 8 16 32 64 128 256 512]
 
-Lorem ipsum.
 
 ------------------------------------------------------------------------
 
 ## pred
 
-Basis Function Combinator
-
-Decrement TOS.
+Function
 
-Gentzen diagram.
+Predecessor. Decrement TOS.
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> 1 -
 
 ### Crosslinks
 
-Lorem ipsum.
+[succ]
+
 
 ------------------------------------------------------------------------
 
 ## primrec
 
-Basis Function Combinator
+Combinator
 
-From the \"Overview of the language JOY\":
+From the ["Overview of the language JOY"](https://www.kevinalbrecht.com/code/joy-mirror/j00ovr.html)
 
-\> The primrec combinator expects two quoted programs in addition to a
-data parameter. For an integer data parameter it works like this: If the
-data parameter is zero, then the first quotation has to produce the
-value to be returned. If the data parameter is positive then the second
-has to combine the data parameter with the result of applying the
-function to its predecessor.:
+> The primrec combinator expects two quoted programs in addition to a
+> data parameter. For an integer data parameter it works like this: If
+> the data parameter is zero, then the first quotation has to produce the
+value to be returned. If the data parameter is positive then the second
+has to combine the data parameter with the result of applying the
+> function to its predecessor.
 
-    5  [1]  [*]  primrec
+> 5  \[1\]  \[\*\]  primrec
 
-\> Then primrec tests whether the top element on the stack (initially
-the 5) is equal to zero. If it is, it pops it off and executes one of
-the quotations, the \[1\] which leaves 1 on the stack as the result.
-Otherwise it pushes a decremented copy of the top element and recurses.
-On the way back from the recursion it uses the other quotation, \[\*\],
-to multiply what is now a factorial on top of the stack by the second
-element on the stack.:
+> Then primrec tests whether the top element on the stack (initially the
+> 5) is equal to zero. If it is, it pops it off and executes one of the
+> quotations, the \[1\] which leaves 1 on the stack as the result.
+Otherwise it pushes a decremented copy of the top element and recurses.
+On the way back from the recursion it uses the other quotation, \[\*\],
+to multiply what is now a factorial on top of the stack by the second
+> element on the stack.
 
-    n [Base] [Recur] primrec
 
        0 [Base] [Recur] primrec
     ------------------------------
           Base
 
-         n [Base] [Recur] primrec
+             n [Base] [Recur] primrec
     ------------------------------------------ n > 0
        n (n-1) [Base] [Recur] primrec Recur
 
-Gentzen diagram.
-
-### Definition
-
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
 ### Discussion
 
-Lorem ipsum.
+Simple and useful specialization of the [genrec] combinator from the
+[original Joy system](https://www.kevinalbrecht.com/code/joy-mirror/index.html).
 
 ### Crosslinks
 
-Lorem ipsum.
+[genrec]
+[tailrec]
+
 
 ------------------------------------------------------------------------
 
 ## product
 
-Basis Function Combinator
-
-1 swap \[\*\] step
+Function
 
-Gentzen diagram.
+Just as [sum] sums a list of numbers, this function multiplies them
+together.
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
+> 1 [swap] \[[mul]\] [step]
 
-### Discussion
+Or,
 
-Lorem ipsum.
+> \[1\] \[[mul]\] [primrec]
 
-### Crosslinks
 
-Lorem ipsum.
 
 ------------------------------------------------------------------------
 
index a763007..06178c3 100644 (file)
@@ -2,28 +2,28 @@
 
 ## pam
 
-Basis Function Combinator
+Combinator
 
-\[i\] map
+Take a list of quoted functions from the stack and replace it with a list
+of the [first] results from running those functions (on copies of the
+rest of the stack.)
 
-Gentzen diagram.
+### Example
 
-### Definition
-
-if not basis.
-
-### Derivation
+       5 7 [[+][-][*][/][%]] pam
+    -------------------------------
+          5 7 [12 -2 35 0 5]
 
-if not basis.
-
-### Source
+### Definition
 
-if basis
+> \[[i]\] [map]
 
 ### Discussion
 
-Lorem ipsum.
+A specialization of [map] that runs a list of functions in parallel (if
+the underlying [map] function is so implemented, of course.)
 
 ### Crosslinks
 
-Lorem ipsum.
+[map]
+
index a00dc94..9322c60 100644 (file)
@@ -2,32 +2,15 @@
 
 ## pm
 
-Basis Function Combinator
+Function
 
-Plus or minus :
+Plus or minus.  Replace two numbers with their sum and difference.
 
-    a b pm
-    -------------
-    a+b a-b
-
-Gentzen diagram.
+          a b pm
+    -----------------
+       (a+b) (a-b)
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
-
-### Crosslinks
+> \[+\] \[-\] [clop]
 
-Lorem ipsum.
index 48da3ea..dc93fdb 100644 (file)
@@ -2,28 +2,19 @@
 
 ## pop
 
-Basis Function Combinator
+Basis Function
 
-    (a1 --)
+Pop the top item from the stack and discard it.
 
-Gentzen diagram.
-
-### Definition
-
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+       a pop
+    -----------
 
 ### Crosslinks
 
-Lorem ipsum.
+[popd]
+[popdd]
+[popop]
+[popopd]
+[popopdd]
+[popopop]
+
index 1016b57..679e13d 100644 (file)
@@ -2,28 +2,24 @@
 
 ## popd
 
-Basis Function Combinator
+Function
 
-    (a2 a1 -- a1)
+[pop] the second item down on the stack.
 
-Gentzen diagram.
+       a b popd
+    --------------
+          b
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [swap] [pop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popdd]
+[popop]
+[popopd]
+[popopdd]
+[popopop]
+
index 6e9504b..af75b36 100644 (file)
@@ -2,28 +2,24 @@
 
 ## popdd
 
-Basis Function Combinator
+Function
 
-    (a3 a2 a1 -- a2 a1)
+[pop] the third item on the stack.
 
-Gentzen diagram.
+       a b c popdd
+    -----------------
+           b c
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [rolldown] [pop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popop]
+[popopd]
+[popopdd]
+[popopop]
+
index 8b6c10c..bf9b72a 100644 (file)
@@ -2,28 +2,23 @@
 
 ## popop
 
-Basis Function Combinator
+Function
 
-    (a2 a1 --)
+[pop] two items from the stack.
 
-Gentzen diagram.
+       a b popop
+    ---------------
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [pop] [pop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popopd]
+[popopdd]
+[popopop]
+
index 8b6e4af..c5de7c0 100644 (file)
@@ -2,28 +2,24 @@
 
 ## popopd
 
-Basis Function Combinator
+Function
 
-    (a3 a2 a1 -- a1)
+[pop] the second and third items from the stack.
 
-Gentzen diagram.
+       a b c popopd
+    ------------------
+            c
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [rollup] [popop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popop]
+[popopdd]
+[popopop]
+
index 3122141..9fb56df 100644 (file)
@@ -2,28 +2,22 @@
 
 ## popopdd
 
-Basis Function Combinator
+Function
 
-    (a4 a3 a2 a1 -- a2 a1)
-
-Gentzen diagram.
+       a b c d popopdd
+    ---------------------
+            c d
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> \[[popop]\] [dipd]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popop]
+[popopd]
+[popopop]
+
index f19d92c..41cad2b 100644 (file)
@@ -2,28 +2,23 @@
 
 ## popopop
 
-Basis Function Combinator
+Function
 
-pop popop
+[pop] three items from the stack.
 
-Gentzen diagram.
+       a b c popopop
+    -------------------
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> [pop] [popop]
 
 ### Crosslinks
 
-Lorem ipsum.
+[pop]
+[popd]
+[popdd]
+[popop]
+[popopd]
+[popopdd]
+
index a12647f..9d439a3 100644 (file)
@@ -2,28 +2,18 @@
 
 ## pow
 
-Basis Function Combinator
+Basis Function
 
-Same as a \*\* b.
+Take two numbers `a` and `b` from the stack and raise `a` to the `n`th
+power.  (`b` is on the top of the stack.)
 
-Gentzen diagram.
+       a n pow
+    -------------
+        (aⁿ)
 
-### Definition
+### Example
 
-if not basis.
+       2 [2 3 4 5 6 7 8 9] [pow] map
+    -----------------------------------
+        2 [4 8 16 32 64 128 256 512]
 
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
-
-### Crosslinks
-
-Lorem ipsum.
index 7e2760e..1bfea43 100644 (file)
@@ -2,28 +2,15 @@
 
 ## pred
 
-Basis Function Combinator
+Function
 
-Decrement TOS.
-
-Gentzen diagram.
+Predecessor. Decrement TOS.
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
-### Discussion
-
-Lorem ipsum.
+> 1 -
 
 ### Crosslinks
 
-Lorem ipsum.
+[succ]
+
index bbafc14..e72d148 100644 (file)
@@ -2,55 +2,43 @@
 
 ## primrec
 
-Basis Function Combinator
+Combinator
 
-From the \"Overview of the language JOY\":
+From the ["Overview of the language JOY"](https://www.kevinalbrecht.com/code/joy-mirror/j00ovr.html)
 
-\> The primrec combinator expects two quoted programs in addition to a
-data parameter. For an integer data parameter it works like this: If the
-data parameter is zero, then the first quotation has to produce the
-value to be returned. If the data parameter is positive then the second
-has to combine the data parameter with the result of applying the
-function to its predecessor.:
+> The primrec combinator expects two quoted programs in addition to a
+> data parameter. For an integer data parameter it works like this: If
+> the data parameter is zero, then the first quotation has to produce the
+value to be returned. If the data parameter is positive then the second
+has to combine the data parameter with the result of applying the
+> function to its predecessor.
 
-    5  [1]  [*]  primrec
+> 5  \[1\]  \[\*\]  primrec
 
-\> Then primrec tests whether the top element on the stack (initially
-the 5) is equal to zero. If it is, it pops it off and executes one of
-the quotations, the \[1\] which leaves 1 on the stack as the result.
-Otherwise it pushes a decremented copy of the top element and recurses.
-On the way back from the recursion it uses the other quotation, \[\*\],
-to multiply what is now a factorial on top of the stack by the second
-element on the stack.:
+> Then primrec tests whether the top element on the stack (initially the
+> 5) is equal to zero. If it is, it pops it off and executes one of the
+> quotations, the \[1\] which leaves 1 on the stack as the result.
+Otherwise it pushes a decremented copy of the top element and recurses.
+On the way back from the recursion it uses the other quotation, \[\*\],
+to multiply what is now a factorial on top of the stack by the second
+> element on the stack.
 
-    n [Base] [Recur] primrec
 
        0 [Base] [Recur] primrec
     ------------------------------
           Base
 
-         n [Base] [Recur] primrec
+             n [Base] [Recur] primrec
     ------------------------------------------ n > 0
        n (n-1) [Base] [Recur] primrec Recur
 
-Gentzen diagram.
-
-### Definition
-
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
-
 ### Discussion
 
-Lorem ipsum.
+Simple and useful specialization of the [genrec] combinator from the
+[original Joy system](https://www.kevinalbrecht.com/code/joy-mirror/index.html).
 
 ### Crosslinks
 
-Lorem ipsum.
+[genrec]
+[tailrec]
+
index 8585f6e..a9a1387 100644 (file)
@@ -2,28 +2,17 @@
 
 ## product
 
-Basis Function Combinator
+Function
 
-1 swap \[\*\] step
-
-Gentzen diagram.
+Just as [sum] sums a list of numbers, this function multiplies them
+together.
 
 ### Definition
 
-if not basis.
-
-### Derivation
-
-if not basis.
-
-### Source
-
-if basis
+> 1 [swap] \[[mul]\] [step]
 
-### Discussion
+Or,
 
-Lorem ipsum.
+> \[1\] \[[mul]\] [primrec]
 
-### Crosslinks
 
-Lorem ipsum.