Not sure how to contribute exactly but I just had this cool idea inspired by fmap/map.
Typically when using groupsof or windowsof with strings, it's pretty common that you actually want to yield strings and not tuples of chars.
So for example fgroupsof(3, "ABCDEFGH") would yield "ABC", "DEF", "GH".
Not sure how to contribute exactly but I just had this cool idea inspired by
fmap/map.Typically when using
groupsoforwindowsofwith strings, it's pretty common that you actually want to yield strings and not tuples of chars.So for example
fgroupsof(3, "ABCDEFGH")would yield"ABC","DEF","GH".