package opam-core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module OpamStd.OptionSource

Sourceval default : 'a -> 'a option -> 'a
Sourceval default_map : 'a option -> 'a option -> 'a option
Sourceval replace : ('a -> 'b option) -> 'a option -> 'b option
Sourceval map_default : ('a -> 'b) -> 'b -> 'a option -> 'b
Sourceval equal_some : ('a -> 'a -> bool) -> 'a -> 'a option -> bool
Sourceval to_string : ?none:string -> ('a -> string) -> 'a option -> string
Sourceval none : 'a -> 'b option
Sourceval of_Not_found : ('a -> 'b) -> 'a -> 'b option

of_Not_found f x calls f x, catches Not_found and returns None

Sourcemodule Op : sig ... end