Skip to content

Commit c62b65e

Browse files
authored
fix documentation of subscripted inventory (#874)
The behavior is the same as rows, so I also added docs for negative subscripts.
1 parent ad9bdfe commit c62b65e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

parser/src/defs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1921,11 +1921,15 @@ primitive!(
19211921
/// ex: {⍜ {⊙⊙∘}⍚⊂ 1_2 3_4_5 6_7_8_9 10}
19221922
/// : {⍜⊙{⊙⊙∘}⍚⊂ 10 1_2 3_4_5 6_7_8_9 }
19231923
///
1924-
/// Subscripted [inventory] operates N subarrays deep.
1924+
/// Subscripted [inventory] operates on rank-N subarrays.
19251925
/// ex: ⍚₀∘ °△2_3_4
19261926
/// : ⍚₁∘ °△2_3_4
19271927
/// : ⍚₂∘ °△2_3_4
19281928
/// : ⍚₃∘ °△2_3_4
1929+
/// Making the subscript negative instead operates N ranks deep.
1930+
/// ex: ⍚₋₁□ °△2_3_4
1931+
/// : ⍚₋₂□ °△2_3_4
1932+
/// : ⍚₋₃□ °△2_3_4
19291933
/// Sided [inventory] [fix]es either the first or last argument so that it can be reused in multiple iterations.
19301934
/// ex: ⍚⌞⊂ 1_2 3_4
19311935
/// : ⍚⌟⊂ 1_2 3_4

0 commit comments

Comments
 (0)