Has anyone come across a piece of code to implement a conditional combination of enumerations? Essentially i have
val decideEnumeratee : Enumerate[A,Either[L,R] = Enumerate.map(a=>???) val leftSideEnumeratee : Enumeratee[L,B] = Enumeratee.map(l=>???) val rightEnumeratee: Enumeratee[R,B] = Enumeratee.map(r=>???)
I want to have an implementation of the following combinator:
def either[L,R,B](left:Enumeratee[L,B], right,Enumeratee[R,B]): Enumeratee[Either[L,R],B] = ???
Does anyone come across a similar enumeratee implementation?
source share