Skip to content

Add docs for values and indices retrieval from IdOffsetRange #317

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

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

All modified and coverable lines are covered by tests ✅

Project coverage is 98.67%. Comparing base (08dc371) to head (341f8cc).
Report is 37 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #317   +/-   ##
=======================================
  Coverage   98.67%   98.67%           
=======================================
  Files           5        5           
  Lines         452      452           
=======================================
  Hits          446      446           
  Misses          6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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