added real definition of for with the each to allow stopping early without extra compiler baggage