drop

From The K Language Wiki
Revision as of 06:15, 9 July 2022 by Promovicz (talk | contribs) ("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
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"