Skip to main content

Add Prefix (prefix)

Laurence MorganLess than 1 minuteBuiltin CommandsList / Array Editing

Add Prefix (prefix)

Prefix a string to every item in a list

Description

Takes a list from stdin and returns that same list with each element prefixed.

Usage

<stdin> -> prefix str -> <stdout>

Examples

» ja [Monday..Wednesday] -> prefix foobar
[
    "foobarMonday",
    "foobarTuesday",
    "foobarWednesday"
]

Detail

Supported data types can queried via runtime

runtime --marshallers
runtime --unmarshallers

Synonyms

  • prefix
  • list.prefix

See Also


This document was generated from builtins/core/lists/push_pop_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan