absinthe v1.2.0-alpha0 Absinthe.Blueprint.Transform
Summary
Functions
Apply fun to all children of a node, then apply fun to node
Same as postwalk/2 but takes and returns an accumulator
Apply fun to a node, then walk to its children and do the same
Same as prewalk/2 but takes and returns an accumulator
Functions
Same as postwalk/2 but takes and returns an accumulator
Specs
prewalk(Absinthe.Blueprint.t, (Absinthe.Blueprint.t -> Absinthe.Blueprint.t)) :: Absinthe.Blueprint.t
prewalk(Absinthe.Blueprint.t, (Absinthe.Blueprint.t -> Absinthe.Blueprint.t)) :: Absinthe.Blueprint.t
Apply fun to a node, then walk to its children and do the same
Specs
prewalk(Absinthe.Blueprint.t, any, (Absinthe.Blueprint.t, any -> {Absinthe.Blueprint.t, any})) :: {Absinthe.Blueprint.t, any}
prewalk(Absinthe.Blueprint.t, any, (Absinthe.Blueprint.t, any -> {Absinthe.Blueprint.t, any})) :: {Absinthe.Blueprint.t, any}
Same as prewalk/2 but takes and returns an accumulator
The supplied function must be arity 2.
Specs
walk(Absinthe.Blueprint.t, any, (Absinthe.Blueprint.t, any -> {Absinthe.Blueprint.t, any}), (Absinthe.Blueprint.t, any -> {Absinthe.Blueprint.t, any})) :: {Absinthe.Blueprint.t, any}