Hello,
I'm trying to define an anonymous function
julia> (args...) -> begin
println("hello anonymous func with args")
end
(anonymous function)
works correctly
A "classic" with keywords arguments can be define using
julia> function f(args...; kwargs...)
println("hello classic func with args and kwargs")
end
f (generic function with 1 method)
But it doesn't work with keyword arguments
julia> (args...; kwargs...) -> begin
println("hello anonymous func with args and kwargs")
end
ERROR: syntax: "begin
args...
kwargs...
end" is not a valid function argument name
I don't understand if that's an issue or a misunderstanding from my side.
Any idea ?
Kind regards