I am trying to learn scala. I was looking at the documentation for queues (https://www.scala-lang.org/api/current/scala/collection/immutable/Queue.html).
It is my understanding that methods that end in a colon are right associative. However, to me, the ++: does not apear to do so:
import scala.collection.immutable.Queue
val q0 = Queue(0)
val q1 = Queue(1)
q0 ++ q1 // yields Queue(0,1) as I expected
q0 ++: q1 // yields Queue(0,1) as well; I expected Queue(1,0)
Both the documentation and experimentation seem to indicate that ++: is not right associative. The documentation for both ++ and ++: say left followed by the right and that is what happens above, I just don't understand why. Clearly, there is something I am missing. Could someone please clarify this for me?