Skip to content

Commit

Permalink
fix before 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Feb 19, 2022
1 parent 05fa7e5 commit db0454f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/UnROOT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import LibDeflate: zlib_decompress!, Decompressor
import Tables, TypedTables, PrettyTables

@static if VERSION < v"1.6"
Base.first(itr, n::Integer) = collect(Iterators.take(itr, n))
Base.first(a::AbstractVector{S}, n::Integer) where S<: AbstractString = a[1:(length(a) > n ? n : end)]
Base.first(a::S, n::Integer) where S<: AbstractString = a[1:(length(a) > n ? n : end)]
end
Expand Down

0 comments on commit db0454f

Please sign in to comment.