Essentially, I’m writing some custom
broadcast(op, args...) method and I want to do some fancy logic based on what function
op is. Is there a way to turn
op back into it’s expression object? Something like,
f(x) = x^2 get_code(f) # would return :(x^2)
Edit: And to clarify, I’m aware you can dispatch on e.g.
broadcast(::typeof(*), args...) but I need this to work for more general
ops which are a composition of many operations.