# Consider adding splat and slurp functions

**URL:** <https://discourse.julialang.org/t/consider-adding-splat-and-slurp-functions/34606>\
**Category:** Internals & Design\
**Tags:** proposal\
**Created:** [February 13, 2020, 10:52pm UTC](https://discourse.julialang.org/t/consider-adding-splat-and-slurp-functions/34606 "2020-02-13T22:52:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Post date:** [February 13, 2020, 10:52pm UTC](https://discourse.julialang.org/t/consider-adding-splat-and-slurp-functions/34606/1 "2020-02-13T22:52:44Z")

</div>

Already several times it was discussed that we might add the `splat` function to Base that would have the following definition:

```julia
splat(f) = x -> f(x...)

```

then we could also consider adding:

```julia
slurp(f) = (x...) -> f(x)

```

(the need for this has not been reported but it is a natural consequence of the first definition)

The question is if such addition to Base could be considered.

CC @nalimilan, @piever

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [September 28, 2026, 8:36am UTC](https://discourse.julialang.org/t/consider-adding-splat-and-slurp-functions/34606/2 "2026-09-28T08:36:24Z")

</div>

`splat` is available nowadays, under the proposed name.

`slurp` is not necessary, instead of `slurp(f)`, just do `f ∘ tuple`.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 28, 2026, 9:26am UTC](https://discourse.julialang.org/t/consider-adding-splat-and-slurp-functions/34606/3 "2026-09-28T09:26:18Z")

</div>

> [@bkamins](#):
>
> The question is if such addition to Base could be considered.

Recently added under the name `unsplat`: [Base: add `unsplat(f)`, the semantic inverse of `splat` - Pull Request #62714 - JuliaLang/julia - GitHub](https://github.com/JuliaLang/julia/pull/62714)

See also the discussion in [Does Base.splat have an inverse?](https://discourse.julialang.org/t/does-base-splat-have-an-inverse/138772)
