the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.