We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd75d42 commit 455d8c6Copy full SHA for 455d8c6
julia/Euler/src/lib/util.jl
@@ -129,9 +129,9 @@ function get_max_exp(num; base)
129
e
130
end
131
132
-undigits(lst::Vector{T}; base::Integer = 10) where {T<:Integer} = undigits(T, lst; base = base)
+undigits(lst::AbstractVector{T}; base::Integer = 10) where {T<:Integer} = undigits(T, lst; base = base)
133
134
-function undigits(T::Type{<:Integer}, lst::Vector{U}; base::Integer = 10) where {U<:Integer}
+function undigits(T::Type{<:Integer}, lst::AbstractVector{U}; base::Integer = 10) where {U<:Integer}
135
foldr((x, acc) -> acc * base + x, lst; init = zero(T))
136
137
0 commit comments