Create arrays of decimal integers
This document describes how to create arrays of decimals using
mkarray (a et al).
Please refer to a (mkarray) for more detailed usage of mkarray.
a: [start..end] -> <stdout>
a: [start..end,start..end] -> <stdout>
a: [start..end][start..end] -> <stdout>
All usages also work with ja and ta as
well, eg:
ja: [start..end] -> <stdout>
ta: data-type [start..end] -> <stdout>
You can also inline arrays with the %[] syntax, eg:
%[start..end]
» a [1..3]
1
2
3
» a [3..1]
3
2
1
» a [01..03]
01
02
03
If you do need a range of fixed floating point numbers generated then you can do so by merging two decimal integer ranges together. For example
» a [0..5].[0..9]
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
1.1
1.2
1.3
...
4.8
4.9
5.0
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
Please note that all arrays are created as strings. Even when using
typed arrays such as JSON (ja).
» ja [0..5]
[
"0",
"1",
"2",
"3",
"4",
"5"
]
count: Count
items in a map, list or arrayja:
A sophisticated yet simply way to build a JSON arrayta: A
sophisticated yet simple way to build an array of a user defined
data-typea: A sophisticated yet simple way to stream an array or
list (mkarray)[ ..Range ]: Outputs a ranged subset of data from
stdin[[ Element ]]: Outputs an element from a nested
structureThis document was generated from builtins/core/mkarray/ranges_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 Dec 10 23:24:04 UTC 2025 against commit ec623f9ec623f9e05b9cd816d1c93e90c807e23ff173cd9.
Current version is 7.1.4143 (unknown) which has been verified against tests cases.