Looping over each index in varargs

Perhaps you want Iterators.product?

function exfnc(x...)
    for p in Iterators.product(x...)
        val = f(p...) # some function f
        # do something with val...
    end
end
2 Likes