chickadee » srfi-158 » generator-find

generator-find pred genprocedure

Applies pred to each item from gen. As soon as it yields a true value, the item is returned without consuming the rest of gen. If gen is exhausted, returns #f.