Understated.StatePath (Understated v0.0.1)
Summary
Functions
Link to this function
pop_state(path, to_pop)
Pops a state off the current state path.
Examples
iex> Understated.StatePath.pop_state("", "to_pop")
""
iex> Understated.StatePath.pop_state("to_pop", "to_pop")
""
iex> Understated.StatePath.pop_state("not_to_pop.to_pop", "to_pop")
"not_to_pop"
iex> Understated.StatePath.pop_state("not_to_pop", "to_pop")
"not_to_pop"
Link to this function
push_state(path, new_state)
Pushes a new state onto the current state path.
Examples
iex> Understated.StatePath.push_state("", "new_state")
"new_state"
iex> Understated.StatePath.push_state("old_state", "new_state")
"old_state.new_state"