KOS_OP_MATCH_TAIL
Style: EXTRA (LABEL, RAW, RAW, RAW): label, cursor depth, suffix width, minimum.
Stack:
[...]->[..., span]; jump toa0with nothing pushed on a miss.Semantics: Take the elements left at the cursor at depth
a1but the lasta2, push them as a span, and advance the cursor past them. A miss when fewer thana2elements remain or the span holds fewer thana3. Over a tuple, list or other sequence the span is a tuple of the items; over a single value, a one-element tuple of the value or the empty tuple. Over a pair spine it is aDatumover the rest of the spine when the span runs to the spine’s end, aDatumover the spine’s terminator when the span is empty, and otherwise a tuple of aDatumper cell; a spine cut inside the span raisesValueError.Compiler form: Emitted by the match compiler for a rest pattern (
*: rest,REST).