Maps
====
```Example from 1 languages: JSON
{"name": "Mary"}
```
```Example from 1 languages: Lua
myMap = {
key = "value",
[35] = 35,
}
```
```Example from 1 languages: Elixir
%{key: "value"}
```
```Example from 1 languages: MoonBit
let map : Map[String, Int] = { "x": 1, "y": 2, "z": 3 }
```
```Example from 1 languages: Wax
(let m (map str int) (alloc (map str int)))
(set m "xyz" 123)
(insert m "abc" 456) ; exactly same as 'set'
(print (get m "xyz"))
(remove m "xyz")
(print (get m "xyz"))
;^ if a value is not there, the "zero" value of the element type is returned
; for numbers, 0; for compound types, null.
```
```Example from 1 languages: Jule
let my_map: [int:str] = {
0: "Key 0",
1: "Key 1",
2: "Key 2",
}
```
```Example from 1 languages: mmCIF
_entry.id 1BNA
```
```Example from 1 languages: Speedie
|| x = ["a":"Apple", "b":"Bird", "c":"Cat"]
printline x["b"] // Bird
```
*
Languages *with* Maps include JSON, Lua, Elixir, EDN, MoonBit, Wax, Jule, mmCIF, Speedie
*
View all concepts with or missing a *hasMaps* measurement
http://pldb.info/../lists/explorer.html#columns=rank~id~appeared~tags~creators~hasMaps&searchBuilder=%7B%22criteria%22%3A%5B%7B%22condition%22%3A%22null%22%2C%22data%22%3A%22hasMaps%22%2C%22origData%22%3A%22hasMaps%22%2C%22type%22%3A%22num%22%2C%22value%22%3A%5B%5D%7D%5D%2C%22logic%22%3A%22AND%22%7D missing
http://pldb.info/../lists/explorer.html#columns=rank~id~appeared~tags~creators~hasMaps&searchBuilder=%7B%22criteria%22%3A%5B%7B%22condition%22%3A%22!null%22%2C%22data%22%3A%22hasMaps%22%2C%22origData%22%3A%22hasMaps%22%2C%22type%22%3A%22num%22%2C%22value%22%3A%5B%5D%7D%5D%2C%22logic%22%3A%22AND%22%7D with
*
Read more about Maps on the web: 1.
https://en.wikipedia.org/wiki/Associative_array 1.
Built with Scroll v178.2.3