mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 03:05:29 -05:00
bugfix in Sequence.MList.iter_rev
This commit is contained in:
parent
2ba0cfe2f4
commit
942023cdd7
1 changed files with 2 additions and 2 deletions
|
|
@ -148,8 +148,8 @@ module MList = struct
|
|||
if l.tl != _empty () then iteri (i+l.len) f l.tl
|
||||
in iteri 0 f l
|
||||
|
||||
let iter_rev f l =
|
||||
(if l.tl != _empty () then iter f l.tl);
|
||||
let rec iter_rev f l =
|
||||
(if l.tl != _empty () then iter_rev f l.tl);
|
||||
for i = l.len - 1 downto 0 do f l.content.(i); done
|
||||
|
||||
let length l =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue