Permit.Actions.Forest (permit v0.0.3)

Link to this section Summary

Link to this section Types

@type t() :: %Permit.Actions.Forest{forest: %{required(vertex()) => [vertex()]}}
@type vertex() :: atom()

Link to this section Functions

Link to this function

new(list_or_map)

Link to this function

traverse_forest(forest, value, actions)

@spec traverse_forest(
  t(),
  any(),
  condition: (any() -> boolean()),
  value: (any() -> term()),
  empty: (any() -> term()),
  join: ([term()] -> term())
) :: {:ok, term()} | {:error, :cycle | :not_defined, term()}
Link to this function

uniq_nodes_list(forest)