module Immutable
Defined in:
immutable.crimmutable/map.cr
immutable/map/trie.cr
immutable/vector.cr
immutable/vector/trie.cr
immutable/version.cr
Constant Summary
-
VERSION =
"0.1.18"
Class Method Summary
-
.from(object)
Recursively traverses the given object and turns hashes into
Immutable::Map
and arrays intoImmutable::Vector
-
.map(keyvals : Hash(K, V))
Construct an
Immutable::Map
of the given key-values -
.vector(elements : Array(T))
Construct an
Immutable::Vector
of the given elements
Class Method Detail
def self.from(object)
#
Recursively traverses the given object and turns hashes into
Immutable::Map
and arrays into Immutable::Vector