Cut (K)

From APL Wiki
Revision as of 14:59, 6 January 2020 by Marshall (talk | contribs) (Created page with "{{Built-in|Cut|_}} is a dyadic primitive function in K which partitions its right argument by its left in the same sense as Partition. The left argument mu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
_

Cut (_) is a dyadic primitive function in K which partitions its right argument by its left in the same sense as Partition. The left argument must be a non-decreasing vector of integers between 0 and the count of the right argument, inclusive (unlike indices with K's index origin of 0, the count itself is allowed). Each entry of the left argument indicates that a new partition should start just before that index in the right argument. When more than one partition is started in the same place, all but the last is left empty.

Cut is related to Partition and Partitioned Enclose: see Partition representations.

External Links

Documentation