Skip to content

Conversation

@jishnub
Copy link
Member

@jishnub jishnub commented Jul 20, 2023

After this,

julia> b = blockedrange([1,2,3])
3-blocked 6-element BlockedUnitRange{Vector{Int64}}:
 12
 34
 5
 6

julia> view(b, Block(1))
1:1

julia> view(b, Block(3))
4:6

This matches the behavior of a UnitRange.

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #298 (c85dbc7) into master (7b83868) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #298      +/-   ##
==========================================
- Coverage   92.29%   92.17%   -0.12%     
==========================================
  Files          16       16              
  Lines        1479     1482       +3     
==========================================
+ Hits         1365     1366       +1     
- Misses        114      116       +2     
Impacted Files Coverage Δ
src/blockaxis.jl 95.71% <100.00%> (+0.03%) ⬆️

... and 2 files with indirect coverage changes

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

@dlfivefifty dlfivefifty merged commit 58e4029 into JuliaArrays:master Jul 20, 2023
@jishnub jishnub deleted the blockedrangeview branch July 20, 2023 13:47
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