//arrow-core/arrow.core/Option/filter

filter

common inline fun filter(predicate: (A) -> Boolean): Option<A>

Returns this $option if it is nonempty ‘'’and’’’ applying the predicate $p to this $option’s value returns true. Otherwise, return $none.

Parameters

common

   
predicate the predicate used for testing.

Do you like Arrow?

Arrow Org
<