I have a stream of strings. I want to provide a method parameter x which then streams the strings in groups of x which can then be collected in a set.
So if x=4 then and the stream size was 8, then I would have two sets containing 4 elements. The for each of those sets of 4 elements I can call ForEach and do other operations on, in the above example forEach would be called twice 1 for each 4 element set.