package odoc

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

Module LangUtils.LensSource

Sourcetype ('a, 'b) lens = {
  1. get : 'a -> 'b;
  2. set : 'b -> 'a -> 'a;
}
Sourcetype ('a, 'b) prism = {
  1. preview : 'a -> 'b option;
  2. review : 'b -> 'a;
}
Sourceval option : ('a option, 'a) prism
Sourceval compose : ('a, 'b) lens -> ('b, 'c) lens -> ('a, 'c) lens
Sourceval compose_prism : ('a, 'b) lens -> ('b, 'c) prism -> ('a, 'c) lens
Sourceval fst : ('a * 'b, 'a) lens
Sourceval snd : ('a * 'b, 'b) lens
Sourceval hd : ('a list, 'a) prism
Sourceval nth : int -> ('a list, 'a) prism
Sourceval (|--) : ('a, 'b) lens -> ('b, 'c) lens -> ('a, 'c) lens
Sourceval (|-~) : ('a, 'b) lens -> ('b, 'c) prism -> ('a, 'c) lens
Sourceval get : ('a, 'b) lens -> 'a -> 'b
Sourceval set : ('a, 'b) lens -> 'b -> 'a -> 'a
Sourcemodule Signature : sig ... end
Sourcemodule Module : sig ... end
Sourcemodule Include : sig ... end
Sourcemodule ModuleType : sig ... end
Sourcemodule FunctorParameter : sig ... end
Sourcemodule TypeDecl : sig ... end
Sourcemodule TypeExpr : sig ... end
OCaml

Innovation. Community. Security.