Frage

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 ?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top