InputA stream of elements. OutputN streams of E elements. Each stream contains elements sharing the same expression evaluation. The number of outputs corresponds to the number of cases defined. ExampleFrom one stream with a list of employees, you want to return 2 streams, based on their genders. |