joshcorbin
searching Neon…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
5 ms·
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
- 7.▲
- 8.▲
- 9.▲
Further showing the advantage of the pythonic way, is that the above construction remains about as clear when you refactor it for better pruning: (
(to_number(s, e, n, d),
to_number(m, o, r, e),
to_number(m, - 10.▲
- 11.▲
- 12.▲
- 13.▲
Even more interesting to me: In [3]: ar = [1, 2, 3, 2, 4, 6, 3, 5 ,7, 3, 5, 8] In [4]: %timeit zip( [iter(ar)] 3) - 14.▲
- 15.▲
- 16.▲
- 17.▲
- 18.▲
- 19.▲
- 20.▲
- 21.▲
- 22.▲
- 23.▲
- 24.▲
- 25.▲
- 26.▲
- 27.▲
- 28.▲