Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite IdOffsetRanges #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Jan 23, 2023

This PR mainly forwards Base.IteratorSize(::IdOffsetRange) to the parent, which allows us to potentially support infinite ranges as well. Infinite ranges are a bit of a sticky area, because currently in InifniteArrays, the last element of such a range is infinite, which usually has a different type from the eltype of the range. Nonetheless, it might be possible to support some operations.

I've also removed the test/Project.toml, as it's not clear if this was much of a help

@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Merging #323 (37b2701) into master (5bf955c) will increase coverage by 1.35%.
The diff coverage is 100.00%.

❗ Current head 37b2701 differs from pull request most recent head 13eeb03. Consider uploading reports for the commit 13eeb03 to get more accurate results

@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
+ Coverage   96.45%   97.81%   +1.35%     
==========================================
  Files           5        5              
  Lines         451      457       +6     
==========================================
+ Hits          435      447      +12     
+ Misses         16       10       -6     
Impacted Files Coverage Δ
src/OffsetArrays.jl 97.27% <100.00%> (-1.02%) ⬇️
src/axes.jl 98.92% <100.00%> (-1.08%) ⬇️
src/precompile.jl 100.00% <0.00%> (+100.00%) ⬆️

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

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.

1 participant