G
gabriele renzi
Hi gurus and nubys,
I just noticed that enumerable#zip just accepts an Array as argument:
TypeError: cannot convert Range into Array
I wonder why this happens: would'nt make much more sense if it just
applied to_ary to it's argument?
note that ri 1.8a (I know, utdated) agrees with me:
(Enumerable#zip)
Converts any arguments to arrays, then merges elements of enumObj
with corresponding elements from each argument.
I just noticed that enumerable#zip just accepts an Array as argument:
TypeError: cannot convert Range into Array
I wonder why this happens: would'nt make much more sense if it just
applied to_ary to it's argument?
note that ri 1.8a (I know, utdated) agrees with me:
(Enumerable#zip)
Converts any arguments to arrays, then merges elements of enumObj
with corresponding elements from each argument.