detect

docblock
detect(x, p)

Returns the first element of x where p is true.