From 57f95d5329f2d1fd8989c4c673bdd9549f094221 Mon Sep 17 00:00:00 2001 From: meatball Date: Mon, 30 Dec 2024 19:26:49 +0100 Subject: [PATCH] Remove implementation of Matrix struct and add exercise placeholder --- .../matrix/Sources/Matrix/Matrix.swift | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) 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..