aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/group.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-04 21:33:13 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-04 21:33:13 -0400
commit015d9cd399100427b3e82fb183c81d034f00cd8c (patch)
tree64470d2b546b3691483e35dcadaf925988ffcd37 /docs/doc/group.html
parentcf072f50d2e1c600c788d37645721a94c55377c8 (diff)
Use atom for non-array throughout docs
Diffstat (limited to 'docs/doc/group.html')
-rw-r--r--docs/doc/group.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doc/group.html b/docs/doc/group.html
index 57ab5562..25bc3748 100644
--- a/docs/doc/group.html
+++ b/docs/doc/group.html
@@ -7,7 +7,7 @@
<h1 id="group">Group</h1>
<p>BQN replaces the <a href="https://aplwiki.com/wiki/Key">Key</a> operator from J or Dyalog APL, and <a href="https://aplwiki.com/wiki/Partition_representations">many forms of partitioning</a>, with a single (ambivalent) Group function <code><span class='Function'>⊔</span></code>. This function is somewhat related to the K function <code><span class='Function'>=</span></code> of the same name, but results in an array rather than a dictionary.</p>
<h2 id="definition">Definition</h2>
-<p>Group operates on a numeric list of indices and an array, treated as a list of its major cells or &quot;values&quot;, to produce a list of groups, each of which is a selection from those cells. The two arrays have the same length, and each value cell is paired with the index at the same position. That index indicates the result group the cell should go into, with an &quot;index&quot; of ¯1 indicating that it should be dropped and not appear in the result.</p>
+<p>Group operates on a list of atomic-number indices and an array, treated as a list of its major cells or &quot;values&quot;, to produce a list of groups, each of which is a selection from those cells. The two arrays have the same length, and each value cell is paired with the index at the same position. That index indicates the result group the cell should go into, with an &quot;index&quot; of ¯1 indicating that it should be dropped and not appear in the result.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=MOKAvzHigL8y4oC/MOKAvzEg4omNICJhYmNkZSIgICMgQ29ycmVzcG9uZGluZyBpbmRpY2VzIGFuZCB2YWx1ZXMKMOKAvzHigL8y4oC/MOKAvzEg4oqUICJhYmNkZSIgICMgVmFsdWVzIGdyb3VwZWQgYnkgaW5kZXg=&run">↗️</a><pre> <span class='Number'>0</span><span class='Ligature'>‿</span><span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>0</span><span class='Ligature'>‿</span><span class='Number'>1</span> <span class='Function'>≍</span> <span class='String'>&quot;abcde&quot;</span> <span class='Comment'># Corresponding indices and values
</span>┌─
╵ 0 1 2 0 1