|
|
@ -39,8 +39,5 @@ val merge_dedup : 'a list -> 'a list -> compare:('a -> 'a -> int) -> 'a list
|
|
|
|
val drop : 'a list -> int -> 'a list
|
|
|
|
val drop : 'a list -> int -> 'a list
|
|
|
|
(** [drop l n] returns [l] without the first [n] elements, or the empty list if [n > length l]. *)
|
|
|
|
(** [drop l n] returns [l] without the first [n] elements, or the empty list if [n > length l]. *)
|
|
|
|
|
|
|
|
|
|
|
|
val mem_nth : 'a list -> int -> bool
|
|
|
|
|
|
|
|
(** [mem_nth l n] returns whether the list [l] contains a [n]th element. *)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val opt_cons : 'a option -> 'a list -> 'a list
|
|
|
|
val opt_cons : 'a option -> 'a list -> 'a list
|
|
|
|
(** [opt_cons None l] returns [l]. [opt_cons (Some x) l] returns [x :: l]*)
|
|
|
|
(** [opt_cons None l] returns [l]. [opt_cons (Some x) l] returns [x :: l]*)
|
|
|
|