Measures Concepts
GitHub icon

Maps

Maps - language feature

< >
{"name": "Mary"}
Example from Lua:
https://www.lua.org/pil/2.5.html
Example from Elixir:
%{key: "value"}
Example from Speedie:
|| x = ["a":"Apple", "b":"Bird", "c":"Cat"] printline x["b"] // Bird
Example from Jule:
let my_map: [int:str] = { 0: "Key 0", 1: "Key 1", 2: "Key 2", }

Languages with Maps include JSON, Lua, Elixir, EDN, JSON5, Speedie, Ion, Jule, JSONiq, JSON with Comments, Superjson, Jsonnet, Hocon

This question asks: Does the language have a map (aka hashtable) data structure?

Read more about Maps on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout