Skip to content

Instantly share code, notes, and snippets.

@axsk
Created October 17, 2015 14:38
Show Gist options
  • Save axsk/7e64391efac69f4dca5c to your computer and use it in GitHub Desktop.
Save axsk/7e64391efac69f4dca5c to your computer and use it in GitHub Desktop.
findcalls(x::Expr)=mapreduce(findcalls, vcat, ex.head == :call ? x.args[1] : [], filter(arg->isa(arg, Expr), x.args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment