Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bubulle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
bubulle
11y ago
If you are wondering how to make a lazy take() in python, here is one solution: def take(num): def gen(iterable): for i, item in enumerate(iterable): if i == num: break