InductiveGraph.Utilities (InductiveGraph v0.1.0) View Source
Functions for use by other modules.
Link to this section Summary
Functions
Updates value at key
in map
by function
.
Updates element at position
in tuple
by function
.
Link to this section Functions
Specs
Updates value at key
in map
by function
.
If key
is present in map
with value value
, then {:ok, new_map}
is
returned where new_map
is equivalent map
with the result of function
with argument value
as the new value for key
. Otherwise, :error
is
returned.
Specs
tuple_update_position!(tuple(), non_neg_integer(), (term() -> term())) :: tuple()
Updates element at position
in tuple
by function
.