Logo

Programming-Idioms

History of Idiom 8 > diff from v56 to v57

Edit summary for version 57 by miguel:
New Kotlin implementation by user [miguel]

Version 56

2019-09-26, 21:39:15

Version 57

2019-09-26, 22:15:32

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
val x = mapOf("one" to 1, "two" to 2)