Left Sub-String (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

Synonyms

See Also


This document was generated from builtins/core/lists/push_pop_doc.yaml.

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 Wed Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.

Current version is 7.0.2107 (develop) which has been verified against tests cases.