Possible Duplicate:
Searching the Scala documentation for #::
I'm looking through the docs of Stream
The filter method has this code:
def naturalsFrom(i: Int): Stream[Int] = i #:: naturalsFrom(i + 1)
naturalsFrom(1) 10 } filter { _ % 5 == 0 } take 10 mkString(", ")
What is the #:: operator? Does this map to a function call somewhere?