README.md

Expression Utilities

High level utilities

map(f::Function, e::Expr)

Constructs a new expression similar to e, but having had the function
f applied to every leaf.

julia>map(x ->isa(x, Int) ? x +1 : x, :(1+1))
# => :(+(2,2))

walk(f::Function, e::Expr)

Recursively walk an expression, applying a function f to each
subexpression and leaf in e. If the function application returns an
expression, that expression will be walked as well. The function can
return the special type ExpressionUtils.Remove to indicate that a
subexpression should be omitted.