Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-levitt committed Jan 13, 2021
1 parent c2cb8d0 commit fc6d219
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions base/range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,8 @@ function range end

range(start; stop=nothing, length::Union{Integer,Nothing}=nothing, step=nothing) =
_range(start, step, stop, length)
range(start, stop; length::Union{Integer,Nothing}=nothing, step=nothing) = _range(start, step, stop, length)
range(start, stop, length::Integer) = _range(start, nothing, stop, length)
function range(start, stop; length::Union{Integer,Nothing}=nothing, step=nothing)
if length === nothing && step === nothing
step = 1
end
_range(start, step, stop, length)
end

range(;start=nothing, stop=nothing, length::Union{Integer, Nothing}=nothing, step=nothing) =
_range(start, step, stop, length)
Expand Down

0 comments on commit fc6d219

Please sign in to comment.