Skip to content

Commit 3a7d62b

Browse files
committed
Update TupleTools.jl
1 parent 0b1147f commit 3a7d62b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TupleTools.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ end
250250
_sort(t::Tuple{Any}, lt=isless, by=identity, rev::Bool=false) = t
251251
_sort(t::Tuple{}, lt=isless, by=identity, rev::Bool=false) = t
252252

253-
function _split(t::NTuple{N}) where N
253+
function _split(t::Tuple)
254+
N = length(t)
254255
M = N>>1
255256
ntuple(i->t[i], M), ntuple(i->t[i+M], N-M)
256257
end

0 commit comments

Comments
 (0)