We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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")