murex Shell Docs

Command Reference: left

Left substring every item in a list

Description

Takes a list from STDIN and returns a left substring of that same list.

One parameter is required and that is the number of characters to return. If the parameter is a negative then left counts from the right.

Usage

<stdin> -> left int -> <stdout>

Examples

Count from the left

» ja: [Monday..Wednesday] -> left 2
[
    "Mo",
    "Tu",
    "We"
]

Count from the right

» ja: [Monday..Wednesday] -> left -3
[
    "Mon",
    "Tues",
    "Wednes"
]

Detail

Supported data types can queried via runtime

runtime: --marshallers
runtime: --unmarshallers

See Also

  • This site is rebuilt weekly, the content is automatically generated from murex's source code. Downloadable murex binaries are also built weekly.
  • Last built on Mon May 10 00:24:28 UTC 2021 against commit d988dd7d988dd786172aac33e9c7592e988c1c3c468deb6.
  • Current version is 2.1.4000 BETA which has been verified against 14514 tests.