Change in arrays from a while ago
This commit is contained in:
parent
435c7cc174
commit
79b40a7ef6
1 changed files with 1 additions and 6 deletions
|
|
@ -51,12 +51,7 @@ proc `+`[W, H](a, b: Matrix[W, H]):
|
|||
for j in 1..high(a[0]):
|
||||
result[i][j] = a[i][j] + b[i][j]
|
||||
|
||||
proc `$`[W, H](a: Matrix[W, H]): string =
|
||||
result = ""
|
||||
for v in a:
|
||||
for vx in v:
|
||||
result.add($vx & ", ")
|
||||
result.add("\n")
|
||||
# See `$` from the procs section
|
||||
|
||||
echo mat1 + mat2
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue