No point in the generator approach when a much simpler function will do