We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6a650 commit cb9b007Copy full SHA for cb9b007
src/main/kotlin/de/ronny_h/aoc/extensions/grids/Grid.kt
@@ -52,7 +52,7 @@ abstract class Grid<T>(
52
*/
53
constructor(input: List<String>, nullElement: T, overrideElement: T = nullElement) : this(
54
input.size,
55
- input[0].length,
+ input.maxOf { it.length },
56
nullElement,
57
overrideElement,
58
emptyList()
0 commit comments