textual-list ( seq quot -- ) (original) (raw)

textual-list ( seq quot -- )

Vocabulary
help.markup

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

IN: help.markup

: textual-list ( seq quot -- ) ", " (textual-list) ; inline