โ)โ ๐ฉ: PrefixesPrefixes of array ๐ฉ along its first axis.
โ 1โฟ2โฟ3โฟ4 โจ โจโฉ โจ 1 โฉ โจ 1 2 โฉ โจ 1 2 3 โฉ โจ 1 2 3 4 โฉ โฉ a โ 3โฟ3 โฅ โ9 โ a โโ ยท โ0โฟ3 โโ โโ โโ โต 0 1 2 โต 0 1 2 โต 0 1 2 โ 3 4 5 3 4 5 โ 6 7 8 โ โ
๐จ โ ๐ฉ: TakeFor each integer in ๐จ, take that many elements from each dimension of ๐ฉ.
Negative numbers take from the end.
If any of the elements in ๐จ are greater than the length of their respective dimension, the dimension is extended with a fill value.
3 โ 1โฟ3โฟ5โฟ67 โจ 1 3 5 โฉ b โ 4โฟ4 โฅ โ16 3โฟ3 โ b โโ โต 0 1 2 4 5 6 8 9 10 โ 5โฟ5 โ b โโ โต 0 1 2 3 0 4 5 6 7 0 8 9 10 11 0 12 13 14 15 0 0 0 0 0 0 โ 3โฟยฏ3 โ b โโ โต 1 2 3 5 6 7 9 10 11 โ