swift fill array with numbers code example Example: swift create array from range let arr2 = Array(0...4)