I've been noticing dozens of recent Stack Overflow questions asking how to do things specifically with list comprehensions ("I want to write a function that uses list comprehensions...") ("I'm trying to use list comprehension to return the list elements that differ from the next.") or otherwise has a map or other operation shoehorned into a comprehension ("capitalise str = [ toUpper x | x <- str ]").
My assumption is that these are all telltales of homework assignments of the form "Using a list comprehension..." or just a teacher somewhere that's really partial to the sugar.
My sense is that list comprehensions in general are rarely idiomatic in "production" these days; rather, we prefer to use folds, map/fmap, scans, sometimes explicit recursion, or perhaps the monad with do. What's the community feeling on this topic?submitted by conklech
[link] [51 comments]
Hey friends of the functional!
- Web scraping in Haskell (Gregor)
- Progress of the reporting tool, epsilonhalbe writes
If anybody wants to contribute, present or suggest any topics - you are welcome to do so!
Language spoken is either German or English, depending on the attendees.
Looking forward to meeting you Martin (epsilonhalbe)submitted by epsilonhalbe
If interested feel free to contact me (email@example.com) for more information, or send a message (and/or a resume) to firstname.lastname@example.org.
thanks, Jeffsubmitted by jeffpatalephcloud
[link] [29 comments]