absinthe v1.2.0-beta.0 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
prewalk(node, fun)
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
prewalk(node, acc, fun)
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.
walk(blueprint, acc, pre, post)
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}