textual-list ( seq quot -- ) (original) (raw)
Inputs
seq | a sequence |
---|---|
quot | a quotation with stack effect ( elt -- ) |
Outputs
None
Word description
Applies the quotation to each element of the sequence, printing a comma between each pair of elements.
Examples
USING: help.markup io namespaces ; last-element off { "fish" "chips" "salt" } [ write ] textual-list
fish, chips, salt
Definition
: textual-list ( seq quot -- ) ", " (textual-list) ; inline