ta
)A sophisticated yet simple way to build an array of a user defined data-type
Murex has a pretty sophisticated builtin for generating arrays. It
works a little bit like Bash’s {1..9}
syntax but includes a
few additional nifty features and the output format is user defined.
ta data-type [start..end] -> <stdout>
ta data-type [start..end.base] -> <stdout>
ta data-type [start..end,start..end] -> <stdout>
ta data-type [start..end][start..end] -> <stdout>
» ta json [1..5]
[
"1",
"2",
"3",
"4",
"5"
]
» ta json [Monday..Sunday]
[
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
]
Please note that as per the first example, all arrays generated by
ta
are arrays of strings - even if you’re command is
ranging over integers. Also if you are only creating arrays in JSON then
you could use ja
instead.
Please read the documentation on a
for a more detailed
breakdown on of ta
’s supported features.
ta
count
): Count
items in a map, list or arrayja
):
A sophisticated yet simply way to build a JSON array[ ..Range ]
: Outputs a ranged subset of data from
stdin[ Index ]
): Outputs an element from an array, map or
table[[ Element ]]
): Outputs an element from a nested
structuremtac
):
Reverse the order of an arraya
): A
sophisticated yet simple way to stream an array or list (mkarray)%[]
Array
Builder: Quickly generate arraysThis document was generated from builtins/core/mkarray/array_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 Jan 15 23:07:50 UTC 2025 against commit b4c4296b4c429617fd41527ea0efef33c52c15ef2b64972.
Current version is 6.4.2063 (develop) which has been verified against tests cases.