Sourcetype 'a t = 'a bwd = | Emp| Snoc of 'a t * 'a
Sourceval append : 'a t -> 'a list -> 'a t Sourceval prepend : 'a t -> 'a list -> 'a list Comparison
Sourceval equal : eq:('a -> 'a -> bool) -> 'a t -> 'a t -> bool Sourceval compare : cmp:('a -> 'a -> int) -> 'a t -> 'a t -> int Iterators
Sourceval iter : f:('a -> unit) -> 'a t -> unit Sourceval map : f:('a -> 'b) -> 'a t -> 'b t Sourceval mapi : f:(int -> 'a -> 'b) -> 'a t -> 'b t Sourceval filter_map : f:('a -> 'b option) -> 'a t -> 'b t Sourceval concat_map : f:('a -> 'b list) -> 'a t -> 'b t Sourceval fold_left : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a Sourceval fold_right : f:('a -> 'b -> 'b) -> 'a t -> init:'b -> 'b Iterators on two lists
Sourceval fold_right2 : f:('a -> 'b -> 'c -> 'c) -> 'a t -> 'b t -> init:'c -> 'c List scanning
Sourceval for_all : f:('a -> bool) -> 'a t -> bool Sourceval exists : f:('a -> bool) -> 'a t -> bool Sourceval mem : 'a -> set:'a t -> bool List searching
Sourceval filter : f:('a -> bool) -> 'a t -> 'a t Backward and forward lists
Sourceval to_list : 'a t -> 'a list Sourceval of_list : 'a list -> 'a t