ocaml-batteries-team/batteries-included — Issue #252: Behaviour of Dllist.rev_enum
Author: sliquister
Created: 2012-03-03 14:09:08+00:00
State: open

`Dllist.rev_enum` creates an enumeration that starts with the current element and then goes towards the left.
This behaviour is unlike the `backwards` functions of other containers, which start enumerating at the right end
of the structure.
If this is unclear, rev_enum (of_list [1;2;3;4]) will enumerate 1, 4, 3, 2.

The documentation is just blurry, so I am not sure if this is a buggy behaviour or not.
Perhaps the simplest solution would be to add a `backwards` function that has the same behaviour as in other
modules and clarify the mli?