I would like to make a function that generates an array consists of Strings, and integers in range combined as a whole String. For example:
let fruit = "apple"
let numbers = Array(1...10)
let format = ".jpg"
->
["apple1.jpg", "apple2.jpg", "apple3.jpg", ..... "apple10.jpg"]
How can I combine a defined String with range of integers and put them in an array? Apologize for a newbie question. Much appreciated. <3