Produce multiple outputs from multiple inputs and sequence the data so that we commute that container types.
Produce multiple outputs from multiple inputs and sequence the data so that we commute that container types. For an example, see that trait documentation.
the Traverse container type
A container of readable sources to convert to outputs.
a Traverse type class instance
an applicative function type class instance
This mixin provides a way to sequence the multiple readables whose return value is a container of some sort. For more info, see A Traversable from Haskell wiki or look up sequence, etc. For now, let's provide an example. Assuming we have an object StrToIntList that takes a string and produces a try of a list of integers by splitting and then parsing the ints. The result is either a success or failure but either way, the result is wrapped in a try container. Notice, that we included in the definition, with SequenceMultipleReadable[ReadableSource, Try, List[Int]]. This is all that is required at definition time to get the sequencing that we want.
The calling code (once the proper type class instances are in imported into the implicit scope) simply passes the container of objects to fromSequencedMultipleSources and the result is a Try[Stream[List[Int]]].
A applicative functor container type (see Functors, Monads, Applicatives – can be so simple).
The container type in the output