Merge pull request #19 from icyfork/master
arrays: fix typo error in #zip proc
This commit is contained in:
commit
4277b18e76
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ The size of the array is encoded in its type and cannot be accidentally lost. Th
|
|||
``` nimrod
|
||||
proc zip[I, T](a, b: array[I, T]):
|
||||
array[I, tuple[a, b: T]] =
|
||||
for i in low(A)..high(A):
|
||||
for i in low(a)..high(a):
|
||||
result[i] = (a[i], b[i])
|
||||
|
||||
let nameAndAddresses = names.zip(addresses)
|
||||
|
|
@ -61,4 +61,4 @@ $ nim c -r matrix.nim
|
|||
1, 1,
|
||||
1, 1,
|
||||
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue