
Hello, It looks like the best way for me to tackle my problem is to create a modified form of Data.Text isInfixOf where the return is an int rather than a bool, to be able to sum words that appear twice or more, but ignoring the whitespace delimitor. Does anyone know where to go to view the actual definition rather than the type signature? Thanks in advance and thank you for your time.

Hello A., Il 24 gennaio 2021 alle 17:59 A. Mc. ha scritto:
It looks like the best way for me to tackle my problem is to create a modified form of Data.Text isInfixOf where the return is an int rather than a bool, to be able to sum words that appear twice or more, but ignoring the whitespace delimitor. Does anyone know where to go to view the actual definition rather than the type signature?
In the docs [1], when you click on «Source» button (on the right), you will get the source —F [1] https://hackage.haskell.org/package/text-1.2.4.1/docs/Data-Text.html#v:isInf...
participants (2)
-
A. Mc.
-
Francesco Ariis