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

Add docs for values and indices retrieval from IdOffsetRange #317

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

Conversation

mkitti
Copy link
Contributor

@mkitti mkitti commented Dec 25, 2022

This is a reduced version of #316 by simply documenting how to retrieve the values and indices shown by Base.show.

Added Documentation

The values and indices keywords can be extracted via Base.values or Base.eachindex and converted to a UnitRange.

julia> values(ro)
IdOffsetRange(values=9:11, indices=-1:1)
julia> eachindex(ro)
IdOffsetRange(values=-1:1, indices=-1:1)
julia> UnitRange(values(ro))
9:11
julia> convert(UnitRange, eachindex(ro))
-1:1

@codecov
Copy link

codecov bot commented Dec 25, 2022

Codecov Report

Merging #317 (341f8cc) into master (08dc371) will increase coverage by 2.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #317      +/-   ##
==========================================
+ Coverage   96.45%   98.67%   +2.22%     
==========================================
  Files           5        5              
  Lines         451      452       +1     
==========================================
+ Hits          435      446      +11     
+ Misses         16        6      -10     
Impacted Files Coverage Δ
src/axes.jl 100.00% <ø> (ø)
src/OffsetArrays.jl 98.29% <0.00%> (+<0.01%) ⬆️
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