We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
function sumUtil(state, args...) @info "sumUtil" length(state) args sum(state) end struct MyClass # public object state state::Vector{Float64} # member functions sumValues::Function MyClass(;state=randn(10)) = new(state, (args...)->sumUtil(state, args...)) end obj = MyClass(); obj.sumValues("Hello world")