Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon

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: Jule
let my_map: [int:str] = { 0: "Key 0", 1: "Key 1", 2: "Key 2", }
Example from 1 languages: Speedie
|| x = ["a":"Apple", "b":"Bird", "c":"Cat"] printline x["b"] // Bird
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.
*

Languages with Maps include JSON, Lua, Elixir, EDN, Jule, Speedie, Wax

*

View all concepts with or missing a hasMaps measurement

*

Read more about Maps on the web: 1.

View source

- Build the next great programming language About Acknowledgements Part of the World Wide Scroll