package accessor

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('a, 'b) t
val optional_getter : ('at -> 'a Base.option) -> ('a, 'b) t -> ('at, 'bt) t

A legal implementation of this function must satisfy the following properties:

optional_getter Option.some = Fn.id
Fn.compose (optional_getter f) (optional_getter g)
=
optional_getter (fun a -> Option.bind (f a) ~f:g)
OCaml

Innovation. Community. Security.