github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/ta.md (about) 1 # `ta` (mkarray) 2 3 > A sophisticated yet simple way to build an array of a user defined data-type 4 5 ## Description 6 7 Murex has a pretty sophisticated builtin for generating arrays. It works 8 a little bit like Bash's `{1..9}` syntax but includes a few additional nifty 9 features and the output format is user defined. 10 11 ## Usage 12 13 ``` 14 ta data-type [start..end] -> <stdout> 15 ta data-type [start..end.base] -> <stdout> 16 ta data-type [start..end,start..end] -> <stdout> 17 ta data-type [start..end][start..end] -> <stdout> 18 ``` 19 20 ## Examples 21 22 ``` 23 » ta json [1..5] 24 [ 25 "1", 26 "2", 27 "3", 28 "4", 29 "5" 30 ] 31 ``` 32 33 ``` 34 » ta json [Monday..Sunday] 35 [ 36 "Monday", 37 "Tuesday", 38 "Wednesday", 39 "Thursday", 40 "Friday", 41 "Saturday", 42 "Sunday" 43 ] 44 ``` 45 46 Please note that as per the first example, all arrays generated by `ta` are 47 arrays of strings - even if you're command is ranging over integers. Also 48 if you are only creating arrays in JSON then you could use `ja` instead. 49 50 ## Detail 51 52 Please read the documentation on `a` for a more detailed breakdown on of 53 `ta`'s supported features. 54 55 ## See Also 56 57 * [`%[]` Create Array](../parser/create-array.md): 58 Quickly generate arrays 59 * [`[ ..Range ]`](../parser/range.md): 60 Outputs a ranged subset of data from STDIN 61 * [`[ Index ]`](../parser/item-index.md): 62 Outputs an element from an array, map or table 63 * [`[[ Element ]]`](../parser/element.md): 64 Outputs an element from a nested structure 65 * [`a` (mkarray)](../commands/a.md): 66 A sophisticated yet simple way to build an array or list 67 * [`count`](../commands/count.md): 68 Count items in a map, list or array 69 * [`ja` (mkarray)](../commands/ja.md): 70 A sophisticated yet simply way to build a JSON array 71 * [`mtac`](../commands/mtac.md): 72 Reverse the order of an array 73 74 <hr/> 75 76 This document was generated from [builtins/core/mkarray/array_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/mkarray/array_doc.yaml).