plebeia
Functional storage using Merkle Patricia tree
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package plebeia
-
plebeia
-
-
plebeia.msync
-
plebeia.test_utils
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val fold :
enter:( 'b -> t -> [< `Return of 'a | `Continue of 'b list * view ] ) ->
leave:'a leave ->
'b ->
t ->
'a
Folding over a node with folding
When entering a node: enter
is executed with the current node. The function can stop the further traversal by returning `Return _
or continue the traversal by returning `Continue _
.
When leaving a node after traversing its sub nodes: When enter
returns `Continue _
and its subnodes are traversed, then leave
is executed.
ON THIS PAGE
No table of contents