Merge pull request #17210 from ktoso/wip-concat-docs-ktoso
Document mapConcat's Seq should not contain nulls
This commit is contained in:
commit
d6f5b4ad2d
5 changed files with 19 additions and 0 deletions
|
|
@ -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]]))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue