Handbook
Glossary
filter-length ( seq n -- seq' )
Vocabulary
sequences
.
extras
Inputs
seq
a
sequence
n
an
integer
Outputs
seq'
a
sequence
Word description
Push a sequence that contains all elements of
seq
that have length
n
.
Definition
USING:
kernel
sequences
;
IN:
sequences.extras
:
filter-length
( seq n -- seq' )
[
[
length
]
]
dip
[
=
]
curry
compose
filter
;