ocp-build

Project builder for OCaml
Library ocplib-lang
Module OcpList
val last : 'a list -> 'a
val take : int -> 'a list -> 'a list
val drop : int -> 'a list -> 'a list
val make : int -> 'a -> 'a list
val tail_map : ( 'a -> 'b ) -> 'a list -> 'b list
val diff : 'a list -> 'a list -> 'a list
val sub : 'a list -> 'a list -> 'a list
val take_while : ( 'a -> bool ) -> 'a list -> 'a list
val drop_while : ( 'a -> bool ) -> 'a list -> 'a list
val setify : 'a list -> 'a list
val setify_sorted : 'a list -> 'a list
val union_set : 'a list -> 'a list -> 'a list
val inter_set : 'a list -> 'a list -> 'a list
val remove_all_assoc : 'a -> ('a * 'b) list -> ('a * 'b) list
val replace_assoc : 'a -> 'b -> ('a * 'b) list -> ('a * 'b) list
val assoc_all : 'a -> ('a * 'b) list -> 'b list
val inv_mem_assoc : 'b -> ('a * 'b) list -> bool
val inv_assoc : 'b -> ('a * 'b) list -> 'a
val rank : 'a -> 'a list -> int
val filter_map : ( 'a -> 'b option ) -> 'a list -> 'b list
val find_map : ( 'a -> 'b option ) -> 'a list -> 'b
val filter_opt : 'a option list -> 'a list
val flatten_map : ( 'a -> 'b list ) -> 'a list -> 'b list
val remove : 'a -> 'a list -> 'a list
val removeq : 'a -> 'a list -> 'a list
val prefixes : 'a list -> 'a list list
val suffixes : 'a list -> 'a list list
exception Invalid_step
val range : ?step:int -> int -> int -> int list
val filter_out : ( 'a -> bool ) -> 'a list -> 'a list
val intersperse : 'a -> 'a list -> 'a list
val intercalate : pattern:'a list -> 'a list -> 'a list
val iteri : ( int -> 'a -> unit ) -> 'a list -> unit
val mapi : ( int -> 'a -> 'b ) -> 'a list -> 'b list