FO
Разве что gadfly, но никогда толком его не смотрел.
Size: a a a
FO
FO
АО
VG
VG
АО
АО
АО
VG
АО
АО
АО
tuple@generated function dropxx(t::NTuple{N}) where N
ex = :()
for i in 2:N-1
ex = :($ex..., t[$i])
end
return ex
end@code_typed dropxx((1, 2, 3, 4, 5))
CodeInfo(
1 ─ %1 = Base.getfield(t, 2, true)::Int64
│ %2 = Base.getfield(t, 3, true)::Int64
│ %3 = Base.getfield(t, 4, true)::Int64
│ %4 = Core.tuple(%1, %2, %3)::Tuple{Int64,Int64,Int64}
└── return %4
) => Tuple{Int64,Int64,Int64}
АО
АО
function dropxx(t::NTuple)
ntuple(i -> t[i + 1], length(t) - 2)
end
GI
FO
KT
function dropxx(t::NTuple)
ntuple(i -> t[i + 1], length(t) - 2)
end
KT
АО
АО