D
Dan Williams
Is there any interest in adding a "Haskellish" take function to
itertools? I know its easy enough to roll my own, I've been using:
take = lambda iter, n: [x for x in itertools.islice(iter, 0, n)]
which works, but I was wondering if it was common enough to get into
itertools?
-Dan
itertools? I know its easy enough to roll my own, I've been using:
take = lambda iter, n: [x for x in itertools.islice(iter, 0, n)]
which works, but I was wondering if it was common enough to get into
itertools?
-Dan