Closed MilesCranmer closed 2 months ago
Hello,
I was just wondering why Base.Fix$(N) only exists for N ∈ [1, 2]? It seems fairly arbitrary.
Base.Fix$(N)
N ∈ [1, 2]
Could we perhaps add a Base.FixN which can take a ::Val{N::Integer} as an argument, and uses that to index the argument?
Base.FixN
::Val{N::Integer}
Best, Miles
See also https://github.com/JuliaLang/julia/issues/554 for related discussion on currying.
fixed by #54653
Hello,
I was just wondering why
Base.Fix$(N)
only exists forN ∈ [1, 2]
? It seems fairly arbitrary.Could we perhaps add a
Base.FixN
which can take a::Val{N::Integer}
as an argument, and uses that to index the argument?Best, Miles