TupleTools.jl
TupleTools.jl copied to clipboard
add front2
Just like tail2, it seems useful to also have front2:
@inline front2(t::Tuple{Any, Any, Vararg{Any}}) = argfront2(t...)
@inline argfront2(a, b...) = (a, argfront2(b...)...)
@inline argfront2(a, b) = ()