"Pearls of functional algorithm design" by Richard Bird is a fabulous book along these lines. It's not exactly light reading, but the chapters are short, and some of the results are surprising, like the faster implementation of nub (unique elements in a list).
An aside: I was trying to brush up on Python and looked at Learn Python the Hard Way, and found exercise 25 absolutely appalling. I hope that's not idiomatic Python.
Comments
"Pearls of functional algorithm design" by Richard Bird is a fabulous book along these lines. It's not exactly light reading, but the chapters are short, and some of the results are surprising, like the faster implementation of nub (unique elements in a list).
An aside: I was trying to brush up on Python and looked at Learn Python the Hard Way, and found exercise 25 absolutely appalling. I hope that's not idiomatic Python.