# Can we let \`|\>\` be used with \`...\`?

**URL:** <https://discourse.julialang.org/t/can-we-let-be-used-with/143022>\
**Category:** Internals & Design\
**Tags:** splat\
**Created:** [November 19, 2026, 7:49am UTC](https://discourse.julialang.org/t/can-we-let-be-used-with/143022 "2026-11-19T07:49:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rokke/32/222691_2.png) [@rokke](https://discourse.julialang.org/u/rokke)\
**Post date:** [November 19, 2026, 7:49am UTC](https://discourse.julialang.org/t/can-we-let-be-used-with/143022/1 "2026-11-19T07:49:09Z")

</div>

as far as I can think of off the top of my head, it seems perfectly fine to do something like:

````diff
diff --git a/base/operators.jl b/base/operators.jl
index b747e76415..3b07f931b5 100644
--- a/base/operators.jl
+++ b/base/operators.jl
@@ -995,7 +995,7 @@ julia> [0 1; 2 3] .|> (x -> x^2) |> sum
 14
 ```
 """
-|>(x, f) = f(x)
+|>(xs...) = xs[end](xs[begin:end-1])
 
 _stable_typeof(x) = typeof(x)
 _stable_typeof(::Type{T}) where {T} = @isdefined(T) && !Core.has_free_typevars(T) ? Type{T} : DataType

````

which would allow things like:

```julia-auto
julia> [1,2,5,4,3]... |> max
5

# where I wanted it...
julia> partialsortperm(sum(R, dims=2) |> vec, 1:2, rev=true)... |> minmax, partialsortperm(sum(R, dims=1) |> vec, 1:2, rev=true)... |> minmax
((128, 751), (57, 550))

julia> R[range(ans[1]...), range(ans[2]...)]

```

I think it’s slightly more readable than `[1,2,3,4,5] |> splat(max)`, and I don’t think it hurts anything, right?

---

<div class="post-metadata">

**Author:** ![jakobnissen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakobnissen/32/13477_2.png) [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Post date:** [November 19, 2026, 8:46am UTC](https://discourse.julialang.org/t/can-we-let-be-used-with/143022/2 "2026-11-19T08:46:32Z")

</div>

Splatting large collections is bad for compiler performance, so indeed it could hurt. The issue is that a collection of 100 elements being splatted into a function creates a function with 100 arguments, each with a possible distinct static type. So the type signature becomes huge.  
In general, I’d use splatting sparingly: Only when you statically know the length of the splatted collection, and only when it has a handful of elements or fewer.

So, expanding the API surface for splatting could be a disservice to users, creating tempting APIs that degrade performance unexpectedly

---

<div class="post-metadata">

**Author:** ![rokke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rokke/32/222691_2.png) [@rokke](https://discourse.julialang.org/u/rokke)\
**Post date:** [November 19, 2026, 8:53am UTC](https://discourse.julialang.org/t/can-we-let-be-used-with/143022/3 "2026-11-19T08:53:18Z")

</div>

I don’t think that would be an **unexpected** performance degradation, since it would be the same as `max([1,2,3,4,5]...)`, right? it’s just letting people do what they already could with functional notation

to clarify, I’m not saying `[1,2,3,4,5]... |> max` is a good example; it was just the first function that came to mind
