julia> x = [1, 14, 356];
julia> function pad_zeros(x)
strs = string.(x)
m = maximum(length, strs)
lpad.(x, m, "0")
end
pad_zeros (generic function with 1 method)
julia> pad_zeros(x)
3-element Array{String,1}:
"001"
"014"
"356"
4 Likes