ulkb.util.match_first#

match_first(f, xs, x=None)[source]#

Returns the first element of xs satisfying f; or x