package spotlib

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

Module Option.InfixSource

include Monad.Infix with type 'a t := 'a option
Sourceval (>>=) : 'a option -> ('a -> 'b option) -> 'b option

synonym of bind

Sourceval (>>|) : 'a option -> ('a -> 'b) -> 'b option

synonum of fmap, with the flipped arguments

Sourceval (>|=) : 'a option -> ('a -> 'b) -> 'b option

synonum of fmap, with the flipped arguments

Applicative style binops

Sourceval (^<$>) : ('a -> 'b) -> 'a option -> 'b option

same as map, <$> in Haskell

Sourceval (/<*>) : ('a -> 'b) option -> 'a option -> 'b option

<*> in Haskell

Sourceval (>>=!) : 'a option -> (unit -> 'a option) -> 'a option
Sourceval (//) : 'a t -> 'a -> 'a

Same as default but the default value is always evaluated

OCaml

Innovation. Community. Security.