Haskell for all: Program imperatively using Haskell lenses
Note: the actual limited use of `filtered` that you are making here is perfectly fine. The criterion you are filtering on isn't affected by the action you are taking.
Hasnain says:
"Haskell gets a lot of flack because it has no built-in support for state and mutation. Consequently, if we want to bake a stateful apple pie in Haskell we must first create a whole universe of stateful operations. However, this principled approach has paid off and now Haskell programmers enjoy more elegant, concise, and powerful imperative code than you can find even in self-described imperative languages."
Posted on 2014-04-07T21:23:56+0000