3 ms·
Hence the first lazy evaluation example becomes something like import itertools list(itertools.islice(itertools.count(),10)) Though perhaps there is a mor
by trop 9y ago
Hence the first lazy evaluation example becomes something like
import itertools
list(itertools.islice(itertools.count(),10))
Though perhaps there is a more elegant (if not more efficient) way to do this?