package codept-lib

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

Module MresultSource

Result combinators

Sourcetype ('a, 'b) t = ('a, 'b) result
Sourceval is_ok : ('a, 'b) t -> bool
Sourceval all_done : ('a -> 'b) -> ('a, 'b) t list -> ('a list, 'b list) t

all_done undone list , either extracts a full list Ok l' is all element of list are Ok _ or unravel the Ok _ elements in list using the undone function, giving back a Error l.

Sourceval fmap : ('error -> 'error2) -> ('ok -> 'ok2) -> ('ok, 'error) t -> ('ok2, 'error2) t
Sourcemodule Ok : sig ... end
Sourcemodule Error : sig ... end