Skip to content

Commit 06e962b

Browse files
committed
Type instability in Base has been fixed; remove here.
1 parent 22a38bd commit 06e962b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/TupleTools.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module TupleTools
22

33
using Base: tuple_type_head, tuple_type_tail, tuple_type_cons, tail, front, setindex
4+
import Base: permute # TODO: this can disappear when Sparse moves out of Base
45

56
"""
67
struct StaticLength{N} end
@@ -29,10 +30,6 @@ else
2930
@inline Base.ntuple(f, ::StaticLength{N}) where {N} = ntuple(f, Val{N}())
3031
end
3132

32-
if VERSION >= v"0.7-" # to fix type instability in (f)indmin / (f)indmax
33-
Base.pairs(collection) = (k=>v for (k,v) in zip(keys(collection), values(collection)))
34-
end
35-
3633
@inline argtail2(a, b, c...) = c
3734

3835
"""

0 commit comments

Comments
 (0)