Handbook
Glossary
narray ( n -- quot )
Generalized sequence words
Next:
nsequence ( n exemplar -- quot )
Vocabulary
sequences
.
generalizations
Inputs
n
an
integer
Outputs
None
Word description
A generalization of
1array
,
2array
,
3array
and
4array
that constructs an array from the top
n
elements of the stack.
Examples
Some core words expressed in terms of
narray
:
1array
1 narray
2array
2 narray
3array
3 narray
4array
4 narray
See also
nsequence
Definition
USING:
kernel
;
IN:
sequences.generalizations
MACRO:
narray
( n -- quot )
[
{
}
nsequence
]
curry
;