VocabularysequencesInputs and outputsWord descriptionApplies the quotation to each element of the sequence in order. The new elements are collected into a sequence of the same class as
exemplar.
ExamplesThe following example converts a string into an array of one-element strings:
USING: prettyprint strings sequences ;
"Hello" [ 1string ] { } map-as .
{ "H" "e" "l" "l" "o" }
Note that
map could not be used here, because it would create another string to hold results, and one-element strings cannot themselves be elements of strings.
Definition