package promise_jsoo

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

find_map f a applies f to the elements of a 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 array -> 'b array t

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


Innovation. Community. Security.