aboutsummaryrefslogtreecommitdiff
path: root/doc/range.md
diff options
context:
space:
mode:
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.