package calculon

  1. Overview
  2. Docs

Module Calculon.PreludeSource

helpers

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

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

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

Random choice in list, shortcut for Rand_distrib

OCaml

Innovation. Community. Security.