absinthe v1.2.0-alpha.1 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

postwalk(node, fun)

Apply fun to all children of a node, then apply fun to node

postwalk(node, acc, fun)

Same as postwalk/2 but takes and returns an accumulator

prewalk(node, fun)

Apply fun to a node, then walk to its children and do the same

prewalk(node, acc, fun)

Same as prewalk/2 but takes and returns an accumulator

The supplied function must be arity 2.

walk(blueprint, acc, pre, post)