Wrapper type

I want to make a

struct Wrapper{T}
  x::T
end

that forwards calls f(w) to f(w.x). What are the options?

https://github.com/MikeInnes/Lazy.jl/blob/6705a0aa95b2d479e4ca5b5593313b0d6a857966/src/macros.jl#L293

2 Likes