closed_intervals v0.5.0 ClosedIntervals.Tree View Source
Functions to manipulate a tree of closed intervals.
Library users will often use the ClosedIntervals
struct,
which contains a tree together with matching order and equality comparison functions.
This module contains utilities for direct manipulations on the tree structure,
many of which are reexported in ClosedIntervals
.
Link to this section Summary
Functions
Construct a tree from a sorted list of data.
Create a tree with two leaves from the left and right bounds.
This is the internal tree representation. It is not intended to be used publicly.
Link to this section Types
Link to this section Functions
Construct a tree from a sorted list of data.
Link to this function
from_bounds(arg)
View Sourcefrom_bounds({data, data}) :: t(data) when data: var
Create a tree with two leaves from the left and right bounds.
This is the internal tree representation. It is not intended to be used publicly.