Vectorized sprintf?

It’s not the closest to your example, but i guess most idiomatic in julia.

julia> "a" .* lpad.(1:10, 2, '0')
10-element Vector{String}:
 "a01"
 "a02"
 "a03"
 "a04"
 "a05"
 "a06"
 "a07"
 "a08"
 "a09"
 "a10"
1 Like