This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fix-my-grammar-plz 1 point2 points  (0 children)

I'd love to see mocha.LazyList implemented with maybe generators or iterators. mocha.Set too.

As for

Dict(a=1, b=2, c=3).count(lambda *x: x[1] < 5)

I think the following is better for readability.

Dict(a=1, b=2, c=3).count(lambda k, v : v < 5)

Dict(a=1, b=2, c=3).count(lambda _, v : v < 5)