unclip-last ( seq -- butlast last )
Factor handbook » The language » Collections » Sequence operations » Subsequences and slices

Prev:unclip ( seq -- rest first )
Next:cut ( seq n -- before after )


Vocabulary
sequences

Inputs
seqa sequence


Outputs
butlasta sequence
lastan object


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

Examples
USING: prettyprint sequences ; { 1 2 3 } unclip-last prefix .
{ 3 1 2 }


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

Definition