blob: a1a0c3466986a5178a3bb0dc22d77ec77ae2647e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
Down Arrow (`↓`)
`↓ 𝕩`: Suffixes
Suffixes of array `𝕩` along its first axis.
```
↓ 1‿2‿3‿4
⟨ ⟨ 1 2 3 4 ⟩ ⟨ 2 3 4 ⟩ ⟨ 3 4 ⟩ ⟨ 4 ⟩ ⟨⟩ ⟩
a ← 3‿3 ⥊ ↕9
┌─
╵ 0 1 2
3 4 5
6 7 8
┘
↓ a
┌─
· ┌─ ┌─ ┌─ ↕0‿3
╵ 0 1 2 ╵ 3 4 5 ╵ 6 7 8
3 4 5 6 7 8 ┘
6 7 8 ┘
┘
┘
```
`𝕨 ↓ 𝕩`: Drop
For each integer in `𝕨`, drop that many elements from the beginning of each dimension of `𝕩`.
Negative numbers drop from the end.
```
3 ↓ 1‿3‿5‿67
⟨ 67 ⟩
a ← 4‿4 ⥊ ↕16
┌─
╵ 0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
┘
3‿3 ↓ a
┌─
╵ 15
┘
5‿5 ↓ a
┌┐
└┘
3‿¯3 ↓ a
┌─
╵ 12
┘
```
|