mismatch ( seq1 seq2 -- i )
Factor handbook > The language > Collections > Sequence operations > Comparing sequences

Prev:sequence= ( seq1 seq2 -- ? )
Next:drop-prefix ( seq1 seq2 -- slice1 slice2 )


Vocabulary
sequences

Inputs and outputs
seq1a sequence
seq2a sequence
ian index


Word description
Compares pairs of elements up to the minimum of the sequences' lengths, outputting the first index where the two sequences have non-equal elements, or f if all tested elements were equal.

Definition