We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3f756 commit 623a4f8Copy full SHA for 623a4f8
base/range.jl
@@ -253,10 +253,13 @@ end
253
## 1-dimensional ranges ##
254
255
"""
256
- AbstractRange{T}
+ AbstractRange{T} <: AbstractVector{T}
257
258
-Supertype for ranges with elements of type `T`.
259
-[`UnitRange`](@ref) and other types are subtypes of this.
+Supertype for linear ranges with elements of type `T`.
+[`UnitRange`](@ref), [`LinRange`](@ref) and other types are subtypes of this.
260
+
261
+All subtypes must define [`step`](@ref).
262
+Thus [`LogRange`](@ref Base.LogRange) is not a subtype of `AbstractRange`.
263
264
abstract type AbstractRange{T} <: AbstractArray{T,1} end
265
0 commit comments