S.List
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.
find_map f l
f
l
Some v
None
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.
filter_map f l
Some