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 Sep 21 06:11:30 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.