VocabularygeneralizationsInputsOutputsNone
Word descriptionA generalization of
dup,
2dup and
3dup that can work for any number of items. The n topmost items on the stack will be copied and placed on the top of the stack.
ExamplesUSING: prettyprint generalizations kernel
sequences.generalizations ;
1 2 3 4 4 ndup 8 narray .
{ 1 2 3 4 1 2 3 4 }
Some core words expressed in terms of
ndup:
Definition