arrays: fix typo error in #zip proc

This commit is contained in:
Ky-Anh Huynh 2014-12-26 18:38:54 +07:00
commit 953e0ba715

View file

@ -18,7 +18,7 @@ The size of the array is encoded in its type and cannot be accidentally lost. Th
``` nimrod ``` nimrod
proc zip[I, T](a, b: array[I, T]): proc zip[I, T](a, b: array[I, T]):
array[I, tuple[a, b: 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]) result[i] = (a[i], b[i])
let nameAndAddresses = names.zip(addresses) let nameAndAddresses = names.zip(addresses)