Skystrider
Skystrider

Reputation: 399

Scala - what does the &> operator do?

I'm only just learning scala and I see existing code using an operator: &> and I cannot find anything with google search. I don't understand what it is doing.

Code snippet:

Ok.feed(producer &>  EventSource()).as("text/event-stream")

Upvotes: 0

Views: 84

Answers (1)

ka4eli
ka4eli

Reputation: 5424

It's a metod of Enumeratee trait and as docs says is an alias for apply method. Which is also an alias for applyOn which by docs :

Create a new Iteratee that feeds its input, potentially modifying it along the way, into the inner Iteratee, and produces that Iteratee as its result.

Upvotes: 2

Related Questions