Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
min-length ( seq1 seq2 -- n )
Vocabulary
sequences
Inputs and outputs
seq1
a
sequence
seq2
a
sequence
n
a non-negative integer
Word description
Outputs the minimum of the lengths of the two sequences.
Definition
USING:
kernel
math.order
;
IN:
sequences
:
min-length
( seq1 seq2 -- n )
[
length
]
bi@
min
;
inline