diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-18 23:00:43 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-18 23:00:43 -0400 |
| commit | 7b36cd6a7a6d576c19c60e7842a0d0d0c460702a (patch) | |
| tree | 8c66983cc29babe5f24df783dab1db879b802ebc /doc/indices.md | |
| parent | 2366e5a6275d39c1bd9cab2ada26bea00394820d (diff) | |
Add links to html versions at the top of markdown files
Diffstat (limited to 'doc/indices.md')
| -rw-r--r-- | doc/indices.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/indices.md b/doc/indices.md index 0634087d..cc7c5f67 100644 --- a/doc/indices.md +++ b/doc/indices.md @@ -1,3 +1,5 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/doc/indices.html).* + # Indices 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 (`↕`), which can accept a list argument, and Pick (`⊑`), which uses the depth-1 arrays in its left argument as index scalars or lists. Others use single-number indices to refer to cells. |
