Hacker News new | ask | show | jobs
by schoen 747 days ago
All of the itertools functions are implemented using loops, but they heavily abstract over them so that users can think in terms of "streams" (or officially "iterators") without writing loop-oriented code themselves.