effect-tree
Preparing search index...
index
filterMinimumLeaf
Function filterMinimumLeaf
filterMinimumLeaf
<
A
>
(
order
:
Order
<
A
>
,
)
:
(
t
:
Tree
<
A
>
)
=>
[
filtered
:
Tree
<
A
>
,
minLeaf
:
A
,
maybeParent
:
Option
<
A
>
]
Filter out the minimal leaf for the given order and return a tuple with:
The given tree with its minimal leaf removed.
The minimal leaf that was removed.
The minimal leaf parent, or
None
if the tree is a leaf.
Type Parameters
A
Parameters
order
:
Order
<
A
>
Returns
(
t
:
Tree
<
A
>
)
=>
[
filtered
:
Tree
<
A
>
,
minLeaf
:
A
,
maybeParent
:
Option
<
A
>
]
Settings
Member Visibility
Internal
Theme
OS
Light
Dark
effect-tree
Loading...
Filter out the minimal leaf for the given order and return a tuple with:
Noneif the tree is a leaf.