The
group function takes a stream and returns a list of streams
such that flattening the resulting list is equal to the argument.
Moreover, each stream in the resulting list contains only equal
elements. For example, in list notation:
'group' $ 'cycle' "Mississippi"
= "M" : "i" : "ss" : "i" : "ss" : "i" : "pp" : "i" : "M" : "i" : ...