         if indices.count != shape.count {
             fatalError("Array indices don't match array shape")
         }
-
+        
         // Next, we check to see if all the indices are between 0 and the count of their demension:
         for (index, count) in zip(indices, shape) {
             if index < 0 || index >= count {

            case .All:
                return g.next()!
            case .SingleValue(let sv):
                return sv
            case .Range(let low, _):
                return low + g.next()!
            case .List(let list):


// MARK: - Private Helpers

private func makeShape(initialShape: [Int], viewIndices: [ArrayIndex]) -> [Int]? {
    // Check for correct number of indicies
    guard initialShape.count == viewIndices.count else { return nil }
