Module Stdlib.List
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> intThe lexicographic order supported by the provided order. There is no constraint on the relative lengths of the lists.
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> boolReturns
trueiff the given lists have the same length and content with respect to the given equality function.
val find_map : ('a -> 'b option) -> 'a t -> 'b optionfind_map f lreturns the first evaluation offthat returnsSome, or returns None if there is no such element.
val some_if_all_elements_are_some : 'a option t -> 'a t optionIf all elements of the given list are
Some _thenSome xsis returned with thexsbeing the contents of thoseSomes, with order preserved. Otherwise returnNone.