Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
nwith ( n -- )
Factor documentation
>
Factor handbook
>
The language
>
Combinators
>
Generalized shuffle words and combinators
>
Additional generalizations
Prev:
ncurry ( n -- )
Next:
nsum ( n -- quot )
Vocabulary
generalizations
Inputs and outputs
n
an
integer
Word description
A generalization of
with
that can work for any stack depth.
Examples
Some core words expressed in terms of
nwith
:
with
1 nwith
Definition
USING:
kernel
;
IN:
generalizations
:
nwith
( n -- )
[
with
]
swap
call-n
;
inline