Use next() builtin to stop iteration at first match