Module One_or_two.Deferred_result

val sequence : [ `One of ( 'a, 'e ) Core_kernel.Result.t Async_kernel.Deferred.t | `Two of ( 'a, 'e ) Core_kernel.Result.t Async_kernel.Deferred.t * ( 'a, 'e ) Core_kernel.Result.t Async_kernel.Deferred.t ] -> ( [ `One of 'a | `Two of 'a * 'a ], 'e ) Core_kernel.Result.t Async_kernel.Deferred.t
val map : [ `One of 'a | `Two of 'a * 'a ] -> f:( 'a -> ( 'b, 'e ) Core_kernel.Result.t Async_kernel.Deferred.t ) -> ( [ `One of 'b | `Two of 'b * 'b ], 'e ) Core_kernel.Result.t Async_kernel.Deferred.t
val fold : [ `One of 'a | `Two of 'a * 'a ] -> init:'accum -> f: ( 'accum -> 'a -> ( 'accum, 'e ) Core_kernel.Result.t Async_kernel.Deferred.t ) -> ( 'accum, 'e ) Core_kernel.Result.t Async_kernel.Deferred.t