file: job.t package: muf status: alpha
The ]makeVector
function stores the contents of the
given block (which is then discarded) in a newly created
vector, which is returned on the stack:
Stack: [ "The" " eye" " of" " the" " tiger." | ]makeVector --> v Stack: v[0] v[1] v[2] v[3] v[4] Stack: "The" " eye" " of" " the" " tiger."
For those of us addicted to conciseness, this function
is also available under the synonym ]vec
.
Similar functions
]makeVectorI01
]makeVectorI08
]makeVectorI16
]makeVectorI32
]makeVectorF32
]makeVectorF64
are also available.
Note that a key distinction between ]makeVectorI08
and the string primitives is that the latter return
values marked read-only, while ]makeVectorI08
returns a value marked read-write.
See section makeVector. See section ]makeEphemeralVector.
Go to the first, previous, next, last section, table of contents.