Is there a reason why Enum.iter2 does index stuff? Currently the
implementation is:
let iter2 f t u =
let rec loop idx =
f (t.next()) (u.next());
loop (idx + 1)
in
try
loop 0
with
No_more_elements -> ()
Why not:
let iter2 f t u =
let rec loop () =
f (t.next()) (u.next());
loop ()
in
try
loop ()
with
No_more_elements -> ()
From: Nicolas C. <war...@fr...> - 2003-05-27 06:40:25
> Is there a reason why Enum.iter2 does index stuff?
Certainly a too fast copy/fast from Enum.iter2i , not mine but it's been
properly fixed.
Thanks again for the report,
Nicolas Cannasse
From: Brian H. <bri...@ql...> - 2003-05-27 15:01:15
On Tue, 27 May 2003, Nicolas Cannasse wrote:
> > Is there a reason why Enum.iter2 does index stuff?
>
> Certainly a too fast copy/fast from Enum.iter2i , not mine but it's been
> properly fixed.
Mine, I think.
Brian