package promise_jsoo

  1. Overview
  2. Docs
val find_map : ('a -> 'b option t) -> 'a list -> 'b option t

find_map f l applies f to the elements of l in order, and resolves the first result of the form Some v, or None if none exist.

val filter_map : ('a -> 'b option t) -> 'a list -> 'b list t

filter_map f l applies f to every element of l, filters out the None elements and resolves the list of the arguments of the Some elements.

OCaml

Innovation. Community. Security.