package pythonlib

  1. Overview
  2. Docs
type 'a t
module Open_on_rhs_intf : sig ... end
include Base.Applicative.S with type 'a t := 'a t
val return : 'a -> 'a t
val both : 'a t -> 'b t -> ('a * 'b) t
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t

same as apply

val (<*) : 'a t -> unit t -> 'a t
val (*>) : unit t -> 'a t -> 'a t
val (>>|) : 'a t -> ('a -> 'b) -> 'b t
val apply : ('a -> 'b) t -> 'a t -> 'b t
val map2 : 'a t -> 'b t -> f:('a -> 'b -> 'c) -> 'c t
val map3 : 'a t -> 'b t -> 'c t -> f:('a -> 'b -> 'c -> 'd) -> 'd t
val all : 'a t list -> 'a list t
val all_unit : unit t list -> unit t
module Applicative_infix : sig ... end
include Base.Applicative.Let_syntax with type 'a t := 'a t and module Open_on_rhs_intf := Open_on_rhs_intf
module Let_syntax : sig ... end
val create : Pytypes.pyobject -> (Pytypes.pyobject -> 'a) -> arg_name:Base.string -> 'a t
val constant : 'a -> 'a t
val many : 'a Base.list -> arg_name:Base.string -> 'a t
val map : 'a t -> f:('a -> 'b) -> 'b t
val merge : 'a t -> 'b t -> ('b * 'a) t

NOTE: merge flips the order of its arguments. This is to reflect it's intended usage in pipelines via |>.

val zip2 : 'a t -> 'b t -> ('a * 'b) t
val zip3 : 'a t -> 'b t -> 'c t -> ('a * 'b * 'c) t
val zip4 : 'a t -> 'b t -> 'c t -> 'd t -> ('a * 'b * 'c * 'd) t
val to_list : 'a t -> 'a Base.list
val python_of_t : 'a t -> 'b Base.list -> to_python:('b -> Pytypes.pyobject) -> Pytypes.pyobject
OCaml

Innovation. Community. Security.