class Immutable::Vector::Transient(T)

Defined in:

immutable/vector.cr

Constructors

Instance Method Summary

Instance methods inherited from class Immutable::Vector(T)

&(other : Immutable::Vector(_)) &, +(other : Immutable::Vector(U)) forall U +, -(other : Immutable::Vector(_)) -, <<(elem : T) <<, <=>(other : Vector) <=>, ==(other : Vector) ==, [](i : Int) [], []?(i : Int) []?, any? any?, at(i : Int)
at(i : Int, &block)
at
, each
each(&block)
each
, each_index(&block) each_index, empty? empty?, equals?(other : Vector, &block) equals?, first first, first? first?, hash hash, inspect(io : IO) inspect, last last, last? last?, pop : Tuple(T, Immutable::Vector(T)) pop, pop? : Tuple(T?, Immutable::Vector(T)) pop?, push(elem : T) push, set(i : Int, value : T) set, size size, to_json(json : JSON::Builder) to_json, to_s(io : IO) to_s, transient(&block) transient, uniq uniq, |(other : Immutable::Vector(U)) forall U |

Constructor methods inherited from class Immutable::Vector(T)

new(elems : Array(T))
new
new

Class methods inherited from class Immutable::Vector(T)

[](*elems : T) [], of(*elems : T) of

Constructor Detail

def self.new(trie : Immutable::Vector::Trie(T), tail : Array(T)) #

[View source]
def self.new(elems : Array(T)) #

[View source]
def self.new #

[View source]

Instance Method Detail

def persist! #

[View source]
def pop : Tuple(T, Immutable::Vector::Transient(T)) #

[View source]
def pop? : Tuple(T?, Immutable::Vector::Transient(T)) #

[View source]
def push(elem : T) #

[View source]
def set(i : Int, value : T) #

[View source]