module Immutable
Defined in:
immutable/map/trie.crimmutable/map.cr
immutable/vector/trie.cr
immutable/vector.cr
immutable/version.cr
immutable.cr
Constant Summary
-
VERSION =
"0.1.23"
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