Reputation: 53806
Reading http://reactivemongo.org/releases/0.11/documentation/tutorial/consume-streams.html it states
The apply method on Enumerator has an operator alias, |>>>. So we can rewrite the last line like this: enumeratorOfPeople |>>> processDocuments.
Where is this operator defined within API doc ?
Reading https://www.playframework.com/documentation/2.0/api/scala/play/api/libs/iteratee/Enumerator$.html defines apply as :
def
apply [E] (in: E*): Enumerator[E]
Create an Enumerator from a set of values
But no mention of |>>> operator ?
Upvotes: 0
Views: 66
Reputation: 369428
It looks like a typo.
The alias for apply
is called |>>
. |>>>
is something slightly different.
Note: you were looking at the documentation for the Enumerator
object. You need to look at the Enumerator
trait. Also, you were looking at outdated documentation (2.0).
There is an icon in the top-left corner of the Scaladoc that tells you what you are looking at:
Upvotes: 2