Ad
  • Default User Avatar

    Which language? For Python, the idea is that you should return a generator expression - not sure what they're called in Haskell and JavaScript but they do have similar ideas.

    See link in reply to comment below for more details.