Use generator expression in iter_* functions