문제

How to transform an Enumerator[List[E]] to act like an Enumerator[E] ?

First, I think about Enumeratee[From, To], but I only found documentation about mapping or filtering.

Is it possible with an Enumeratee to split a List[E] into multiple E ?

도움이 되었습니까?

해결책

I found something that works but IMHO, it is a workaround.

def flatEnumeratee[To] = Enumeratee.mapConcat[List[To]](identity)

I thought that something will be provided without the need of specified the identity function.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top