diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-02-03 13:43:13 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-02-03 15:24:53 -0500 |
| commit | b2374aef747b4988417f896fdf33852dd57b9b07 (patch) | |
| tree | e04294eeefecca837026b82c2e8e96ff564d011e /docs/spec/primitive.html | |
| parent | ad582b5ef4184e26be86ef61be60c28e90b0bb7d (diff) | |
Rename Unique Mask to Mark Firsts
Diffstat (limited to 'docs/spec/primitive.html')
| -rw-r--r-- | docs/spec/primitive.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/spec/primitive.html b/docs/spec/primitive.html index db1b7e02..e59188d1 100644 --- a/docs/spec/primitive.html +++ b/docs/spec/primitive.html @@ -129,9 +129,9 @@ <p><strong>Range</strong> (<code><span class='Function'>โ</span></code>) is extended to apply to a list of natural numbers, in addition to the provided case of a single natural number (an enclosed natural number <code><span class='Value'>๐ฉ</span></code> should still result in an error). For a list <code><span class='Value'>๐ฉ</span></code>, the result is an array of shape <code><span class='Value'>๐ฉ</span></code> in which the value at a given index is that index, as a list of natural numbers. That is, <code><span class='Value'>i</span><span class='Function'>โก</span><span class='Value'>i</span><span class='Function'>โโ</span><span class='Value'>๐ฉ</span></code> for any list of natural numbers <code><span class='Value'>i</span></code> with <code><span class='Function'>โง</span><span class='Modifier'>ยด</span><span class='Value'>i</span><span class='Function'><</span><span class='Value'>๐ฉ</span></code>.</p> <h3 id="searching">Searching</h3> <p><strong>Match</strong> (<code><span class='Function'>โก</span></code>) indicates whether two values are considered equivalent. It always returns 0 or 1, and never causes an error. If both arguments are atoms then it is identical to <code><span class='Function'>=</span></code>, and if one is an atom and the other an array then it returns 0. If both arguments are arrays then it returns 1 only if they have the same shape and all pairs of corresponding elements match. Fill elements aren't taken into account, so that arrays that match might still differ in behavior. <strong>Not Match</strong> simply returns the complement of Match, <code><span class='Function'>ยฌโก</span></code>.</p> -<p>Monadic search functions compare the major cells of <code><span class='Value'>๐ฉ</span></code> to each other. <code><span class='Value'>๐ฉ</span></code> must have rank at least 1. Except for Unique (<code><span class='Function'>โท</span></code>), the result is a list of numbers with the same length as <code><span class='Value'>๐ฉ</span></code>.</p> +<p>Monadic search functions compare the major cells of <code><span class='Value'>๐ฉ</span></code> to each other. <code><span class='Value'>๐ฉ</span></code> must have rank at least 1. Except for Deduplicate (<code><span class='Function'>โท</span></code>), the result is a list of numbers with the same length as <code><span class='Value'>๐ฉ</span></code>.</p> <ul> -<li><strong>Unique Mask</strong> (<code><span class='Function'>โ</span></code>) returns 1 for a cell if it doesn't match any earlier cell and 0 if it does.</li> +<li><strong>Mark Firsts</strong> (<code><span class='Function'>โ</span></code>) returns 1 for a cell if it doesn't match any earlier cell and 0 if it does.</li> <li><strong>Deduplicate</strong> (<code><span class='Function'>โท</span></code>) filters major cells to remove duplicates, retaining the ordering given by the first appearance of each unique cell.</li> <li><strong>Classify</strong> (<code><span class='Function'>โ</span></code>) returns, for each cell, the smallest index of a cell that matches it (it's necessarily less than or equal to <code><span class='Function'>โโ </span><span class='Value'>๐ฉ</span></code> element-wise, since each cell matches itself).</li> <li><strong>Occurrence Count</strong> (<code><span class='Function'>โ</span></code>) returns the number of earlier cells matching each cell.</li> |
