Create an immutable map

map  list (array)

Create a new immutable key/value map from args.

Introduced in v2.11

Examples

# Example 1

(map foo: 1, bar: 2)[:foo]



#=> 1



# Example 2

(map foo: 1, bar: 2)[:bar]



#=> 2



# Example 3

(map foo: 1, bar: 2)[:quux]



#=> nil