Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
<array> ( n elt -- array )
Factor handbook
>
The language
>
Collections
>
Arrays
Prev:
>array ( seq -- array )
Next:
1array ( x -- array )
Vocabulary
arrays
Inputs and outputs
n
a non-negative integer
elt
an initial element
array
a new array
Word description
Creates a new array with the given length and all elements initially set to
elt
.
Definition
IN:
arrays
PRIMITIVE:
<array>
( n elt -- array )
flushable