Skip to content

Commit eabbf50

Browse files
committed
use Base.front
1 parent 0914944 commit eabbf50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blockedtuple.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151

5252
# BlockArrays interface
5353
function BlockArrays.blockfirsts(bt::AbstractBlockTuple)
54-
return (0, cumsum(blocklengths(bt)[begin:(end - 1)])...) .+ 1
54+
return (0, cumsum(Base.front(blocklengths(bt)))...) .+ 1
5555
end
5656

5757
function BlockArrays.blocklasts(bt::AbstractBlockTuple)

0 commit comments

Comments
 (0)