Another thing I've found helpful to understand these things in addition to 
"help" is "which":

julia> which(range,(Int,Int))
range(a::Real, len::Integer) at range.jl:84

I guess you are expecting the second argument to be the "stop" point, but 
it is the length of the range.

julia> length(range(2,5))
5

julia> length(2:5)
4

I sometimes even look at the source code that "which" points to in order to 
help understand what the function is actually doing.

Reply via email to