Comparing sequences
Factor handbook » The language » Collections » Sequence operations

Prev:Searching sequences
Next:Splitting sequences


Element equality testing:
sequence= ( seq1 seq2 -- ? )

mismatch ( seq1 seq2 -- i )

drop-prefix ( seq1 seq2 -- slice1 slice2 )

assert-sequence= ( a b -- )


The <=> generic word performs lexicographic comparison when applied to sequences.