Does Base.splat have an inverse?
Julia Programming Language
Does Base.splat have an inverse?
Is there a function that inverts splat, in Base, the standard libraries, or a package? As in f((x, y)) = x + y # function takes tuples g(xs...) = f(xs) # let's unsplat manually unsplat(f) = (xs...,) -> f(xs) # unsplat with a closure Note that I am not asking about implementing this, just whether there is a named implementation somewhere.
0 comments
No comments yet.