Skip to content

Commit 455d8c6

Browse files
committed
Use AbstractVector{T} instead of Vector{T}
1 parent fd75d42 commit 455d8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

julia/Euler/src/lib/util.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ function get_max_exp(num; base)
129129
e
130130
end
131131

132-
undigits(lst::Vector{T}; base::Integer = 10) where {T<:Integer} = undigits(T, lst; base = base)
132+
undigits(lst::AbstractVector{T}; base::Integer = 10) where {T<:Integer} = undigits(T, lst; base = base)
133133

134-
function undigits(T::Type{<:Integer}, lst::Vector{U}; base::Integer = 10) where {U<:Integer}
134+
function undigits(T::Type{<:Integer}, lst::AbstractVector{U}; base::Integer = 10) where {U<:Integer}
135135
foldr((x, acc) -> acc * base + x, lst; init = zero(T))
136136
end
137137

0 commit comments

Comments
 (0)