6 ms·
https://news.ycombinator.com/item?id=5987527 https://news.ycombinator.com/item?id=5987527 I'm just getting into Haskell myself and I can't really explain those
by cgag 13y ago
https://news.ycombinator.com/item?id=5987527 https://news.ycombinator.com/item?id=5987527 I'm just getting into Haskell myself and I can't really explain those 10 lines myself (I also haven't implemented a red black tree).
I watched a talk by Yaron Minksy the other day that also talked about the idea that you should "make illegal states unrepresentable" that was really good: http://vimeo.com/14313378 http://vimeo.com/14313378 (he starts talking about that at around ~17:50)