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
nan integer


Word description
A generalization of with that can work for any stack depth.

Examples
Some core words expressed in terms of nwith:
with1 nwith


Definition
USING: kernel ;

IN: generalizations

: nwith ( n -- ) [ with ] swap call-n ; inline