Ram Rachum

Results 174 issues of Ram Rachum

Rename `take_random` to `get_random_element`. Introduce `get_random_elements(n=infinity)`, uses `LazyTuple`.

This is a faster and more idiomatic way of using `itertools.chain`. Instead of computing all the items in the iterable and storing them in memory, they are computed one-by-one and...

I think that the name of the class should be `ImmutableDict` rather than `immutabledict`. Python's standard library uses lower-case names like that, but it's standard for third-party packages to use...

This is my dump from Heapy: ``` Partition of a set of 1235525 objects. Total size = 153363236 bytes. Index Count % Size % Cumulative % Kind (class / dict...