Skip to content

Commit 542d8b7

Browse files
committed
sort methods
1 parent c7baf41 commit 542d8b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blockedtuple.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ end
4141
Base.iterate(bt::AbstractBlockTuple) = iterate(Tuple(bt))
4242
Base.iterate(bt::AbstractBlockTuple, i::Int) = iterate(Tuple(bt), i)
4343

44-
Base.length(bt::AbstractBlockTuple) = sum(blocklengths(bt); init=0)
45-
4644
Base.lastindex(bt::AbstractBlockTuple) = length(bt)
4745

46+
Base.length(bt::AbstractBlockTuple) = sum(blocklengths(bt); init=0)
47+
4848
function Base.map(f, bt::AbstractBlockTuple)
4949
BL = blocklengths(bt)
5050
# use Val to preserve compile time knowledge of BL

0 commit comments

Comments
 (0)