aboutsummaryrefslogtreecommitdiff
path: root/docs/doc/indices.html
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-22 14:15:28 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-22 14:15:34 -0400
commitafa17dfda2fb4fcc74e58236b2bf86f9ba6c50a4 (patch)
treeb286cf154305e42ebbd43240b657be62f0c27997 /docs/doc/indices.html
parent0cb146516528afd700b5c4bec9c5373cf54fd778 (diff)
Add favicon
Diffstat (limited to 'docs/doc/indices.html')
-rw-r--r--docs/doc/indices.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/doc/indices.html b/docs/doc/indices.html
index 5366bdb6..8502faa8 100644
--- a/docs/doc/indices.html
+++ b/docs/doc/indices.html
@@ -1,4 +1,7 @@
-<head><link href="../style.css" rel="stylesheet"/></head>
+<head>
+ <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
+ <link href="../style.css" rel="stylesheet"/>
+</head>
<div class="nav"><a href="https://github.com/mlochbaum/BQN">BQN</a></div>
<h1 id="indices">Indices</h1>
<p>One-dimensional arrays such as K lists or Python arrays have only one kind of index, a single number that refers to an element. For multidimensional arrays using the leading axis theory, there are several types of indexing that can be useful. Historically, nested APL designs have equivocated between these, which I believe can lead to subtle errors when programming. BQN focuses on single-number (depth 0) indices, which can refer to list elements or array major cells (or more generally indexing along any particular axis). When using this kind of element index, indexed arrays are required to be lists. Only two functions allow the use of list element indices: Range (<code><span class='Function'>↕</span></code>), which can accept a list argument, and Pick (<code><span class='Function'>⊑</span></code>), which uses the depth-1 arrays in its left argument as index scalars or lists. Others use single-number indices to refer to cells.</p>