assert-sequence= ( a b -- )
Factor handbook > The language > Collections > Sequence operations > Comparing sequences

Prev:drop-prefix ( seq1 seq2 -- slice1 slice2 )


Vocabulary
sequences

Inputs and outputs
aa sequence
ba sequence


Word description
Throws an error if all the elements of two sequences, taken pairwise, are not equal.

Notes
The sequences need not be of the same type.

Examples
USING: prettyprint sequences ; { 1 2 3 } V{ 1 2 3 } assert-sequence=


Definition