Cut: Difference between revisions
"Better category ordering, add redirects to categories, fix pseudo-adverb categories"
(add cut primitive page) |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1:
{{primitive|x_y|in=K9}}
The '''cut''' primitive partitions the array <code>y</code> before the indices given in array <code>x</code>.
Line 5:
The portion of the array before the first index is ignored.
Indices must be given in ascending order.
<pre>▼
("feed";"face")
3 5_"adfdsfsdfa"
("ds"
"fsdfa")</pre>
Repeating indices add empty cuts in that location:
<pre> 0 2 4 4 4_"abcde"
("ab"
"cd"
""
""
▲ ,"e")</pre>
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
|