unclip ( seq -- rest first )
Factor handbook > The language > Collections > Sequence operations > Subsequences and slices

Prev:but-last ( seq -- headseq )
Next:unclip-last ( seq -- butlast last )


Vocabulary
sequences

Inputs and outputs
seqa sequence
resta sequence
firstan object


Word description
Outputs a tail sequence and the first element of seq; the tail sequence consists of all elements of seq but the first.

Examples
USING: prettyprint sequences ; { 1 2 3 } unclip suffix .
{ 2 3 1 }


See also
unclip-slice, unclip-last, unclip-last-slice

Definition