Handbook
Glossary
nths ( indices seq -- seq' )
Vocabulary
sequences
Inputs
indices
a
sequence
seq
a
sequence
Outputs
seq'
a
sequence
Word description
Outputs a sequence of elements from the input sequence indexed by the indices.
Examples
USING: prettyprint sequences ; { 0 2 } { "a" "b" "c" } nths .
{ "a" "c" }
Definition
USING:
kernel
;
IN:
sequences
:
nths
( indices seq -- seq' )
[
[
nth
]
curry
]
keep
map-as
;