aboutsummaryrefslogtreecommitdiff
path: root/doc/range.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-02 21:42:44 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-06-02 21:43:09 -0400
commitc3ea468236e362e4ecc1bc27aed7a64d90e7cf81 (patch)
tree772ae1b9812efd404859966768abfc856b99da1d /doc/range.md
parentf45ab0c01b250efa190b84f2e1157b85fd52f49f (diff)
Always use "index list", not "list index", for a full element index
Diffstat (limited to 'doc/range.md')
-rw-r--r--doc/range.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/range.md b/doc/range.md
index 60e1afbb..40464bbf 100644
--- a/doc/range.md
+++ b/doc/range.md
@@ -8,7 +8,7 @@ Range (`↕`) is a monadic function that creates arrays of [indices](indices.md)
↕ 2‿3
-It's really two different functions packed together: if `𝕩` is a natural number—a length—then it returns a list of numeric indices, but if it's a list of numbers, then it returns an array of list indices. This means the result always has [depth](depth.md) one more than the argument.
+It's really two different functions packed together: if `𝕩` is a natural number—a length—then it returns a list of numeric indices, but if it's a list of numbers, then it returns an array of index lists. This means the result always has [depth](depth.md) one more than the argument.
The two kinds of index correspond to BQN's two selection functions: [Select](select.md) (`⊏`) works with indices along an axis, which are numbers, and [Pick](pick.md) (`⊑`) works with element indices, which are lists. The examples below would fail if we swapped these around. Each result from Range is a length-6 list, but their elements are different.