From: Alan P. <ap...@re...> - 2003-05-25 06:47:58
|
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 -> () |