View Source ExRoseTree.Support.Generators (ExRoseTree v0.1.3)

Link to this section Summary

Link to this section Functions

Link to this function

add_zipper_locations(z, options \\ [])

View Source
@spec add_zipper_locations(
  ExRoseTree.Zipper.t(),
  keyword()
) :: ExRoseTree.Zipper.t()
Link to this function

add_zipper_siblings(z, options \\ [])

View Source
@spec add_zipper_siblings(
  ExRoseTree.Zipper.t(),
  keyword()
) :: ExRoseTree.Zipper.t()
Link to this function

allot_remaining_shares(seeds, shares)

View Source
@spec allot_remaining_shares([default_seed()], non_neg_integer()) :: [default_seed()]
Link to this function

default_init(options \\ [])

View Source
@spec default_init(keyword()) :: {default_seed(), ExRoseTree.unfold_fn()}
Link to this function

default_unfolder(seed, max_children)

View Source
@spec default_unfolder(default_seed(), non_neg_integer()) ::
  {pos_integer(), [default_seed()]}
Link to this function

new_seed(current_depth, num_children, shares_for_children)

View Source
@spec new_seed(non_neg_integer(), non_neg_integer(), non_neg_integer()) ::
  default_seed()
Link to this function

random_number_of_nodes()

View Source
@spec random_number_of_nodes() :: 1..100
Link to this function

random_tree(options \\ [])

View Source
@spec random_tree(keyword()) :: ExRoseTree.t()
Link to this function

random_zipper(options \\ [])

View Source
@spec random_zipper(keyword()) :: ExRoseTree.Zipper.t()