Return non-optional array up to the last int from integers()
This commit is contained in:
parent
00d14b6e19
commit
81198be13a
4 changed files with 5 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
import Foundation
|
||||
|
||||
let input = Scanner(string: loadData(day: 1)).integers()!
|
||||
let input = Scanner(string: loadData(day: 1)).integers()
|
||||
|
||||
for i in 0..<input.count {
|
||||
for j in i..<input.count {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue