StructWalk.jl
StructWalk.jl copied to clipboard
zipped iteration should splat
Currently we have
StructWalk.scan(model, grad) do tupl
x, g = tupl
# ...
end
while I think it would be more idiomatic to pass separate arguments instead of a tuple
StructWalk.scan(model, grad) do x, g
# ...
end
Of course this would be a breaking change, but it would match the semantics of map
etc...