Skip to content

Commit

Permalink
Specialize axes for InfRanges
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Aug 27, 2023
1 parent becf527 commit 8eaff8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/infrange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ AbstractVector{T}(a::OneToInf) where T<:Real = InfUnitRange{T}(a)
## interface implementations

size(r::InfRanges) = (ℵ₀,)
axes(r::InfRanges) = (OneToInf(),)

isempty(r::InfRanges) = false

Expand Down

0 comments on commit 8eaff8e

Please sign in to comment.