singularizeWords = map singularize
sharperguy 3 months ago
@sharperguy
I also think that this recursive programming style misses the whole point of functional programming. It is singularizeLines = map (unwords . singularizeWords . words) and singularize could be written more declaratively using a function like viewR.
amigalemming 3 months ago
@sharperguy more precisely, singularizeWords = unwords . (fmap singularize) . words
noobyfromhell 2 months ago
@noobyfromhell Yeah you do need unwords although I was leaving out words to allow for other sentences to be passed in (partial application).
sharperguy 2 months ago
synthesized voice is annoying.
sysdroid 4 months ago
What the fuck is wrong with his voice? Is this what happens to people who use vi?
FlameHue 7 months ago 11
Hi, This is good, can you do something like a phone book like application in Haskell, please? Thanks
Psimonblue 9 months ago
singularizeWords = map singularize
sharperguy 3 months ago
@sharperguy
I also think that this recursive programming style misses the whole point of functional programming. It is singularizeLines = map (unwords . singularizeWords . words) and singularize could be written more declaratively using a function like viewR.
amigalemming 3 months ago
@sharperguy more precisely, singularizeWords = unwords . (fmap singularize) . words
noobyfromhell 2 months ago
@noobyfromhell Yeah you do need unwords although I was leaving out words to allow for other sentences to be passed in (partial application).
sharperguy 2 months ago
synthesized voice is annoying.
sysdroid 4 months ago
What the fuck is wrong with his voice? Is this what happens to people who use vi?
FlameHue 7 months ago 11
Hi, This is good, can you do something like a phone book like application in Haskell, please? Thanks
Psimonblue 9 months ago