Tag: Immutable

Scala TreeSet: mutable vs immutable

I was exploring immutable RedBlackTree tree implementation in Scala (2.12.4) when I noticed something that wasn’t clear to me: Comparing keys via compare is followed by explicit key not “equals” condition. I compared similar parts of mutable RedBlackTree implementation and…

Read More >