first_match


Description:

public virtual G first_match (owned Predicate<G> pred)

Returns the first element that matches a given condition

Parameters:

pred

Predicate to be called to check for matches

Returns:

The first element that matches or null

Since:

0.19.91