var stack = [9, 5, 2, 3, 1, 6, 4, 8, 7] extension Array { mutating func rotateLeft(mid: Index) { let slice = self[0..