You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
Thanks for your answer, the names were indeed poorly chosen.
I know how to implement these, just wanted to know if the release of a built-in was an option.
Either new dedicated functions, or maybe an optionnal kwarg to preserve the type for the already existing functions?
It's not very important, just an idea :-)
Not sure how to contribute exactly but I just had this cool idea inspired by
fmap
/map
.Typically when using
groupsof
orwindowsof
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"
.The text was updated successfully, but these errors were encountered: