Iterate over pattern data lazily.