Vocabularysequences.privateInputsn | a non-negative integer |
quot | a quotation with stack effect ( ... n -- ... value ) |
into | a sequence of length at least n |
OutputsNone
Word descriptionA primitive mapping operation that applies a quotation to all integers from 0 up to but not including
n, and collects the results in a new array. User code should use
map instead.
ExamplesUSING: kernel math.parser prettyprint sequences sequences.private ;
10 [ number>string ] 10 f new-sequence [ collect ] keep .
{ "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" }
Definition