Handbook
Glossary
napply ( quot n -- )
Factor handbook
»
The language
»
Combinators
»
Generalized shuffle words and combinators
»
Generalized combinators
Prev:
nkeep ( n -- )
Next:
ncleave ( quots n -- quot )
Vocabulary
generalizations
Inputs
quot
a
quotation
n
an
integer
Outputs
None
Word description
A generalization of
bi@
and
tri@
that can work for any stack depth.
Examples
Some core words expressed in terms of
napply
:
call
1 napply
bi@
2 napply
tri@
3 napply
Definition
USING:
kernel
;
IN:
generalizations
:
napply
( quot n -- )
[
dupn
]
[
spread*
]
bi
;
inline