.Pollen
fold
function defined in module Pollen
function
Pollen
fold(f, tree)
Fold over tree in post-order iteration.
using Pollen node = Node ( : table , Node ( : row , 10 , 10 ) , Node ( : row , 10 , 10 ) ) Pollen . fold ( node , 0 ) do x , subtree subtree isa Leaf { Int } ? x + subtree [ ] : x end
40
There is 1 method for Pollen.fold:
Pollen.fold
The following pages link back here:
xtree/folds.jl , xtree/xtree.jl