Is this an efficiency concern to avoid lambda (lamba in the comment is a typo?) but explicitly get resIter and interate on it?