PyMOTW: itertools
Originally posted
· 1 min read
The functions provided are inspired by similar features of the “lazy functional programming language” Haskell
and SML
. They are intended to be fast and use memory efficiently, but also to be hooked together to express more complicated iteration-based algorithms.