Skip to content

Add docs for values and indices retrieval from IdOffsetRange#317

Open
mkitti wants to merge 1 commit into
JuliaArrays:masterfrom
mkitti:mkitti/doc_values_indices
Open

Add docs for values and indices retrieval from IdOffsetRange#317
mkitti wants to merge 1 commit into
JuliaArrays:masterfrom
mkitti:mkitti/doc_values_indices

Conversation

@mkitti

@mkitti mkitti commented Dec 25, 2022

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Dec 25, 2022

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.67%. Comparing base (08dc371) to head (341f8cc).
⚠️ Report is 45 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 Harness.
📢 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