Handbook
Glossary
shorter? ( seq1 seq2 -- ? )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Sequence combinators
Prev:
longer ( seq1 seq2 -- seq )
Next:
longer? ( seq1 seq2 -- ? )
Vocabulary
sequences
Inputs
seq1
a
sequence
seq2
a
sequence
Outputs
?
a
boolean
Word description
Tests if the length of
seq1
is smaller than the length of
seq2
.
Definition
USING:
math
;
IN:
sequences
:
shorter?
( seq1 seq2 -- ? )
2length
<
;
inline