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's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Fri Sep 10 15:05:25 UTC 2021 against commit 437c274437c274fded54d82e99d70ea7d2917f332c095dd.

Current version is 2.2.1200 BETA which has been verified against tests.