diff --git a/exercises/practice/matrix/Sources/Matrix/Matrix.swift b/exercises/practice/matrix/Sources/Matrix/Matrix.swift index 78bc9bcf7..0f71a9cbd 100644 --- a/exercises/practice/matrix/Sources/Matrix/Matrix.swift +++ b/exercises/practice/matrix/Sources/Matrix/Matrix.swift @@ -1,27 +1,3 @@ struct Matrix { - - let rows: [[Int]] - let columns: [[Int]] - - init(_ stringRepresentation: String) { - var rows = [[Int]]() - var columns = [[Int]]() - - let rowItems = stringRepresentation.split(separator: "\n") - for item in rowItems { - let elements = item.split(separator: " ").compactMap { Int(String($0)) } - rows.append(elements) - } - for i in 0..