package minicaml

  1. Overview
  2. Docs
val take : int -> 'a list -> 'a list

Helper function to take the first elements of a list

val drop : int -> 'a list -> 'a list

Helper function to drop the first elements of a list

val fst : ('a * 'b) -> 'a
val snd : ('a * 'b) -> 'b
val fstl : ('a * 'b) list -> 'a list
val sndl : ('a * 'b) list -> 'b list
val unzip : ('a * 'b) list -> 'a list * 'b list

Helper function to unzip a list of couples

val zip : 'a list -> 'b list -> ('a * 'b) list
val dup_exist : 'a list -> bool
val dup_key_exist : ('a * 'b) list -> bool
val delete_key : 'a -> ('a * 'b) list -> ('a * 'b) list
val key_exist : 'a -> ('a * 'b) list -> bool
val get_key_val : 'a -> ('a * 'b) list -> 'b
val filter_by_keys : 'a list -> ('a * 'b) list -> ('a * 'b) list
OCaml

Innovation. Community. Security.