We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0dbd74 + b4e4ef1 commit 74c4ae8Copy full SHA for 74c4ae8
Array2D/README.markdown
@@ -36,7 +36,7 @@ var cookies = [[Int]](repeating: [Int](repeating: 0, count: 7), count: 9)
36
but that's just ugly. To be fair, you can hide the ugliness in a helper function:
37
38
```swift
39
-func dim<T>(count: Int, _ value: T) -> [T] {
+func dim<T>(_ count: Int, _ value: T) -> [T] {
40
return [T](repeating: value, count: count)
41
}
42
```
0 commit comments