murex Shell Docs

Command Reference: prepend

Add data to the start of an array

Description

prepend a data to the start of an array.

Usage

<stdin> -> prepend: value -> <stdout>

Examples

» a: [January..December] -> prepend: 'New Year'
New Year
January
February
March
April
May
June
July
August
September
October
November
December

Detail

It's worth noting that prepend and append are not data type aware. So any integers in data type aware structures will be converted into strings:

» tout: json [1,2,3] -> prepend: new 
[
    "new",
    "1",
    "2",
    "3"
]

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon May 25 06:11:51 UTC 2020 against commit aa3f3b7aa3f3b7e471543754fdcaf910d4920cad9112b91. Downloadable murex binaries are also built weekly. Current version is 0.48.0120 BETA which has been verified against 29375 tests.