drop

From The K Language Wiki
Revision as of 21:27, 8 July 2022 by Promovicz (talk | contribs) (Lowercase title)


Drop
a_y

The drop primitive removes elements from the start or the end of an array.

positive a removes elements from the start, and negative a removes from the end, similar to take.

 1_1 2 3
2 3

 -2_"abcde"
"abc"