by felipehummel · 15y ago · 0 comments
I guess this is something that will settle down eventually. And programmers will stop using so much random symbols instead of English.
For the specific case of Lists, I don't think is that much trouble. It is the most important class of the language. You better get used to it anyway.
http://www.scala-lang.org/api/rc/scala/collection/Traversabl...
If you write a fancy skiplist and add a TraversableLike trait you will get these operators and the associated methods for free!
Check the source code for NodeSeq. https://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_9_...
It does not implement any of these operators. It just inherits some features extends immutable.Seq[Node] with SeqLike[Node, NodeSeq] with Equality
provides an equality operator and a builder and gets all the other collection operators for free. These operators have the same semantics and implementation across all collection classes unless you specifically override them.