Merge pull request #17210 from ktoso/wip-concat-docs-ktoso

Document mapConcat's Seq should not contain nulls
This commit is contained in:
Roland Kuhn 2015-04-20 21:22:32 +02:00
commit d6f5b4ad2d
5 changed files with 19 additions and 0 deletions

View file

@ -344,6 +344,9 @@ trait FlowOps[+Out, +Mat] {
/**
* Transform each input element into a sequence of output elements that is
* then flattened into the output stream.
*
* The returned sequence MUST NOT contain `null` values,
* as they are illegal as stream elements - according to the Reactive Streams specification.
*/
def mapConcat[T](f: Out immutable.Seq[T]): Repr[T, Mat] = andThen(MapConcat(f.asInstanceOf[Any immutable.Seq[Any]]))