@simeonschaub That certainly looks like what I am after, thanks!
If I am honest, I hadn’t benchmarked the functions (my bad ), but it is certainly ugly! For those interested, the @btime benchmarks are as follows:
function f1(args)
@show args[1], args[2]
end
> 107.107 μs (197 allocations: 6.83 KiB)
function f2(args)
arg1 = args[1]
arg2 = args[2]
@show arg1, arg2
end
> 109.752 μs (197 allocations: 6.83 KiB)
function f3((arg1, arg2))
@show arg1, arg2
end
> 111.287 μs (197 allocations: 6.83 KiB)