Search
ExRoseTree
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Pages
Modules
Tree
ExRoseTree
Sections
Installation
Example Usage
Testing and Disclaimer
Summary
Types
predicate/0
t/0
unfold_fn/0
Guards
empty?/1
leaf?/1
parent?/1
rose_tree?/1
Basic Functionality
all_rose_trees?/1
empty/0
new/2
Term
get_term/1
map_term/2
set_term/2
Children
append_child/2
get_children/1
has_child?/2
insert_child/3
map_children/2
pop_first_child/1
pop_last_child/1
prepend_child/2
remove_child/2
set_children/2
Special
unfold/2
Zipper
ExRoseTree.Zipper
Summary
Types
acc_fn/0
map_fn/0
move_fn/0
predicate/0
t/0
Guards
at_root?/1
empty?/1
has_children?/1
has_siblings?/1
zipper?/1
Basic Functionality
current_focus/1
depth_of_focus/1
empty/0
focused_children/1
focused_term/1
from_locations/1
index_of_focus/1
map_focus/2
map_focused_children/2
map_focused_term/2
map_path/2
new/2
new_location/1
remove_focus/1
root?/1
set_focus/2
set_focused_children/2
set_focused_term/2
to_forest/1
to_tree/1
Common Traversal
accumulate/4
find/3
map/3
move_for/3
move_if/3
move_until/3
move_while/3
Path Traversal
rewind_accumulate/3
rewind_find/2
rewind_for/2
rewind_if/2
rewind_map/2
rewind_to_root/1
rewind_until/2
rewind_while/2
Breadth-first Traversal
backward/1
backward_accumulate/3
backward_find/2
backward_for/2
backward_if/2
backward_map/2
backward_to_root/1
backward_until/2
backward_while/2
forward/1
forward_accumulate/3
forward_find/2
forward_for/2
forward_if/2
forward_map/2
forward_to_last/1
forward_until/2
forward_while/2
Depth-first Traversal
ascend/1
ascend_accumulate/3
ascend_find/2
ascend_for/2
ascend_if/2
ascend_map/2
ascend_to_root/1
ascend_until/2
ascend_while/2
descend/1
descend_accumulate/3
descend_find/2
descend_for/2
descend_if/2
descend_map/2
descend_to_last/1
descend_until/2
descend_while/2
Direct Ancestors
grandparent/1
great_grandparent/1
index_of_grandparent/1
index_of_parent/1
parent/1
parent_location/1
parent_term/1
Direct Descendants
child_at/2
first_child/2
first_grandchild/2
first_great_grandchild/2
last_child/2
last_grandchild/2
last_great_grandchild/2
leftmost_descendant/2
rightmost_descendant/2
Siblings
append_last_sibling/2
append_previous_sibling/2
first_sibling/2
insert_next_sibling_at/3
insert_previous_sibling_at/3
last_sibling/2
map_next_siblings/2
map_previous_siblings/2
next_sibling/2
next_siblings/1
pop_first_sibling/1
pop_last_sibling/1
pop_next_sibling/1
pop_next_sibling_at/2
pop_previous_sibling/1
pop_previous_sibling_at/2
prepend_first_sibling/2
prepend_next_sibling/2
previous_sibling/2
previous_siblings/1
sibling_at/2
Niblings: Nieces & Nephews
first_descendant_nibling/2
first_extended_nibling/2
first_nibling/2
first_nibling_at_sibling/3
last_descendant_nibling/2
last_extended_nibling/2
last_nibling/2
last_nibling_at_sibling/3
next_descendant_nibling/2
next_extended_nibling/2
next_grandnibling/2
next_nibling/2
previous_descendant_nibling/2
previous_extended_nibling/2
previous_grandnibling/2
previous_nibling/2
Piblings: Aunts & Uncles
first_ancestral_pibling/2
first_extended_pibling/2
first_grandpibling/2
first_pibling/2
last_ancestral_pibling/2
last_extended_pibling/2
last_grandpibling/2
last_pibling/2
next_ancestral_pibling/2
next_extended_pibling/2
next_grandpibling/2
next_pibling/2
pibling_at/2
previous_ancestral_pibling/2
previous_extended_pibling/2
previous_grandpibling/2
previous_pibling/2
First Cousins
first_first_cousin/2
last_first_cousin/2
next_first_cousin/2
previous_first_cousin/2
Second Cousins
first_second_cousin/2
last_second_cousin/2
next_second_cousin/2
previous_second_cousin/2
Extended Cousins
first_extended_cousin/2
last_extended_cousin/2
next_extended_cousin/2
previous_extended_cousin/2
ExRoseTree.Zipper.Location
Summary
Types
t/0
Guards
location?/1
Functions
all_locations?/1
index_of_term/1
map_term/2
new/2
Util
ExRoseTree.Util
Summary
Types
result/0
result_fn/0
Functions
always/1
first_of/2
first_of_with_args/3
first_of_with_opts/3
maybe/2
never/1
split_at/2
split_when/2
Dev Support
ExRoseTree.Support.Generators
Summary
Functions
add_zipper_locations/2
add_zipper_siblings/2
allot_remaining_shares/2
default_init/1
default_unfolder/2
new_seed/3
random_number_of_nodes/0
random_tree/1
random_zipper/1
ExRoseTree.Support.Trees
Summary
Functions
empty_tree/0
leaf_tree/0
simple_tree/0
ExRoseTree.Support.Zippers
Summary
Functions
empty_z/0
leaf_z/0
simple_z/0
z_breadth_first/0
z_breadth_first_siblings/0
z_depth_first/0
z_depth_first_siblings/0
z_with_1st_cousins/0
z_with_2nd_cousins/0
z_with_ancestral_piblings/0
z_with_descendant_niblings/0
z_with_extended_cousins/0
z_with_extended_cousins_2/0
z_with_extended_niblings/0
z_with_grand_niblings/0
z_with_grandchildren/0
z_with_grandchildren_2/0
z_with_grandparent/0
z_with_grandpiblings/0
z_with_great_grandchildren/0
z_with_great_grandchildren_2/0
z_with_great_grandparent/0
z_with_niblings/0
z_with_no_ancestral_piblings/0
z_with_parent/0
z_with_piblings/0
z_with_siblings/0
Settings
View Source
ExRoseTree.Support.Trees
(ExRoseTree v0.1.3)
Sample ExRoseTrees for use in development and testing.
Link to this section
Summary
Functions
empty_tree()
leaf_tree()
simple_tree()
Link to this section
Functions
Link to this function
empty_tree()
View Source
Link to this function
leaf_tree()
View Source
Link to this function
simple_tree()
View Source
×