Skip to content

Commit

Permalink
Merge pull request #17230 from JuliaLang/teh/iter_number_revert
Browse files Browse the repository at this point in the history
Revert "Speed up iteration with numbers"
  • Loading branch information
vtjnash authored Jul 2, 2016
2 parents 7b1ef04 + ac4a2ca commit 0d5f541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/number.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ angle(z::Real) = atan2(zero(z), z)

widemul(x::Number, y::Number) = widen(x)*widen(y)

start(x::Number) = 0 # see #16687
next(x::Number, state) = (x, state+1)
done(x::Number, state) = state == 1
start(x::Number) = false
next(x::Number, state) = (x, true)
done(x::Number, state) = state
isempty(x::Number) = false
in(x::Number, y::Number) = x == y

Expand Down

0 comments on commit 0d5f541

Please sign in to comment.