Module
Yoga.Tree.Extended.Path
- Package
- purescript-yoga-tree-utils
- Repository
- shamansir/purescript-yoga-tree-utils
#fillDepths Source
fillDepths :: forall a. Tree a -> Tree (Int /\ a)
Pair every value in the tree with how deep it is in this tree. |
#startsWith Source
startsWith :: Path -> Path -> Boolean
If first path contains full second path. They could be equal, but the second path couldn't be longer than the first one. Every path contains root
. |
#safeAdvance Source
safeAdvance :: forall a. Path -> Int -> Tree a -> Path
Navigate deeper by given index but only if the index is in the bounds of how many children are accessibly by this path. |