emilydolson/python-red-black-trees

Add `__len__()` to RedBlackTree

Opened this issue · 1 comments

The class has a size attribute so it makes sense to use the standard __len__() method to access it instead of relying on it being a public attribute.

#12 adds this. If you are okay with version-breaking changes, it’s probably better to make the count private.