I'm having difficulty with lines 5 - 11. Line 5 and 6 have a for-in within a for-in. I haven't encountered a situation like that before. How might I reason about this loop and it's contents? Is there an applicable concept within the manual I may reference? Is this called recursio
struct Chessboard {
let boardColors: [Bool]()
var temporaryBoard = [Bool]()
var isBlack = false
for i in 1...8 {
for j in 1...8 {
temporaryBoard.append(isBlack)
isBlack = !isBlack
}
isBlack = !isBlack
}
return temporaryBoard
}()