blue-sky
blue-sky

Reputation: 53806

Reactivemongo - where is |>>> operator defined?

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

Answers (1)

Jörg W Mittag
Jörg W Mittag

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:

  • class class
  • class with companion object class with companion object (click to toggle)
  • trait trait
  • trait with companion object trait with companion object (click to toggle)
  • object object
  • companion object for a class companion object for a class (click to toggle)
  • companion object for a trait companion object for a trait (click to toggle)
  • companion object for an abstract type companion object for an abstract type (click to toggle)
  • package package
  • abstract type abstract type
  • abstract type with companion object abstract type with companion object (click to toggle)

Upvotes: 2

Related Questions