github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/arraytools/map_doc.yaml (about) 1 - DocumentID: map 2 Title: >- 3 `map` 4 CategoryID: commands 5 Summary: >- 6 Creates a map from two data sources 7 Description: |- 8 This takes two parameters - which are code blocks - and combines them to output a key/value map in JSON. 9 10 The first block is the key and the second is the value. 11 Usage: |- 12 ``` 13 map { code-block } { code-block } -> <stdout> 14 ``` 15 Examples: |- 16 ``` 17 ยป map { tout json (["key 1", "key 2", "key 3"]) } { tout json (["value 1", "value 2", "value 3"]) } 18 { 19 "key 1": "value 1", 20 "key 2": "value 2", 21 "key 3": "value 3" 22 } 23 ``` 24 Detail: |- 25 Synonyms: 26 Related: 27 - prepend 28 - append 29 - count 30 - a 31 - ja 32 - jsplit 33 - range 34 - alter 35 - item-index 36 - element