module type S = sig end
type
t
The type of elements in a list
val index : t -> t list -> int
Returns the 0-based position of an element in the list using user-defined equality test.
Raises Not_found
if the item isn't in the list
val mem : t -> t list -> bool
mem a l
is true if and only if a
is equal to an element of l
.
val assoc : t -> (t * 'a) list -> 'a
Same as List.assoc
val mem_assoc : t -> (t * 'a) list -> bool
Same as List.mem_assoc
val remove_assoc : t -> (t * 'a) list -> (t * 'a) list
Same as List.remove_assoc