package calculon

  1. Overview
  2. Docs

helpers

val string_opt_to_string : string option -> string
val string_list_to_string : string list -> string
val get_nick : string -> string
val id : 'a -> 'a
val some : 'a -> 'a option
val map_opt : ('a -> 'b) -> 'a option -> 'b option
val (|?) : 'a option -> 'a -> 'a

o |? x is y if o=Some y, x otherwise

val contains : string -> Re.re -> bool
val re_match2 : (string -> string -> 'a) -> Re.re -> string -> 'a option
val re_match1 : (string -> 'a) -> Re.re -> string -> 'a option
val re_match0 : 'a -> Re.re -> string -> 'a option
val edit_distance : string -> string -> int
module StrMap : CCMap.S with type key = string
module Rand_distrib : sig ... end
val random_l : 'a list -> 'a

Random choice in list, shortcut for Rand_distrib

OCaml

Innovation. Community. Security.