module List:sig
..end
map
, iter
, and filter
process their input list
sequentially. To make these functions process their input list in
parallel, pass ~how:`Parallel
as an argument to the functions, and
additionally prefix the function being passed in with ~f:
. For
example,
Deferred.List.map ~how:`Parallel [1; 2; 3] ~f:return
val map : 'a list -> ('a -> 'b Deferred.t) -> 'b list Deferred.t
val iter : 'a list -> ('a -> unit Deferred.t) -> unit Deferred.t
val fold : 'a list ->
'b -> ('b -> 'a -> 'b Deferred.t) -> 'b Deferred.t
val filter : 'a list -> ('a -> bool Deferred.t) -> 'a list Deferred.t
val find : 'a list ->
('a -> bool Deferred.t) -> 'a option Deferred.t