Logo

Programming-Idioms

History of Idiom 8 > diff from v32 to v33

Edit summary for version 33 by programming-idioms.org:
[Ruby] +DemoURL

Version 32

2016-10-23, 21:15:35

Version 33

2016-11-28, 22:30:24

Idiom #8 Initialize a new map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Idiom #8 Initialize a new map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Extra Keywords
table dictionary hash
Extra Keywords
table dictionary hash
Code
x = {one: 1, two: 2}
Code
x = {one: 1, two: 2}
Demo URL
https://repl.it/E9q9/0