nsequence ( n exemplar -- quot ) - Factor Documentation

nsequence ( n exemplar -- quot )
Generalized sequence words



Vocabulary
sequences .generalizations

Inputs
n an integer


Outputs
None

Word description
A generalization of 2sequence , 3sequence , and 4sequence that constructs a sequence from the top n elements of the stack.

Examples
USING: prettyprint sequences.generalizations ; CHAR: f CHAR: i CHAR: s CHAR: h 4 "" nsequence .
"fish"


See also
narray

Definition
USING: memoize.private ;

IN: sequences.generalizations

MACRO: nsequence ( n exemplar -- quot ) [nsequence] ;

AltStyle によって変換されたページ (->オリジナル) /