Skip to content

Conversation

@jishnub
Copy link
Member

@jishnub jishnub commented Jan 23, 2023

This lets one use the ranges as iterators, and the following works after this:

julia> s = Iterators.Stateful(2:∞)
Base.Iterators.Stateful{InfiniteArrays.InfUnitRange{Int64}, Tuple{Int64, Int64}, Int64}(2:∞, (2, 2), -1)

julia> first(s)
2

julia> first(s)
3

@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Merging #105 (83d6f39) into master (0873436) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
- Coverage   85.03%   85.01%   -0.03%     
==========================================
  Files           4        4              
  Lines         655      654       -1     
==========================================
- Hits          557      556       -1     
  Misses         98       98              
Impacted Files Coverage Δ
src/infrange.jl 87.86% <100.00%> (+0.03%) ⬆️
src/InfiniteArrays.jl 86.51% <0.00%> (-0.44%) ⬇️
src/infarrays.jl 82.54% <0.00%> (+0.08%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dlfivefifty dlfivefifty merged commit febb258 into JuliaArrays:master Jan 24, 2023
@jishnub jishnub deleted the iteratorsize branch January 24, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants