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.24"
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)) forall K, V
Construct an
Immutable::Map
of the given key-values -
.vector(elements : Array(T)) forall 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
def self.map(keyvals : Hash(K, V)) forall K, V
#
Construct an Immutable::Map
of the given key-values
def self.vector(elements : Array(T)) forall T
#
Construct an Immutable::Vector
of the given elements