News for hackers. Stuff that matters.
Re:Programming and thinking the functional way by platz on Wednesday May 07, 2014 @03:58PM (#7712314)
I mentioned Pearls of Functional Algorithm Design because it exactly describes how to do this. It may not lead to a solution in the ST monad, but it does tell you to to iterate to a better solution.

This post explains what I'm talking about: http://www.atamo.com/blog/how-to-read-pearls-by-richard-bird...

Re:Programming and thinking the functional way by alkonaut on Wednesday May 07, 2014 @04:12PM (#7712379)
Sounds like a good read, sold!
Re:Programming and thinking the functional way by platz on Wednesday May 07, 2014 @04:19PM (#7712424)
I'm kind of on the fence about it - I've hesitated buying it because the post also explains that it's a notoriously difficult book - some of the results of the "swizzling" can lead to some inscrutable final programs.

But I'll probably pick it up at some point in the near future.

Re:Programming and thinking the functional way by louthy on Saturday May 10, 2014 @05:16PM (#7726879)
> it's a notoriously difficult book

Personally I don't find that to be true, it's perfectly logical mostly. It's definitely worth picking up imho.