module Immutable

Defined in:

immutable/map/trie.cr
immutable/map.cr
immutable/vector/trie.cr
immutable/vector.cr
immutable/version.cr
immutable.cr

Constant Summary

VERSION = "0.1.23"

Class Method Summary

Class Method Detail

def self.from(object) #

Recursively traverses the given object and turns hashes into Immutable::Map and arrays into Immutable::Vector


[View source]
def self.map(keyvals : Hash(K, V)) forall K, V #

Construct an Immutable::Map of the given key-values


[View source]
def self.vector(elements : Array(T)) forall T #

Construct an Immutable::Vector of the given elements


[View source]