Re:Ask HN: how to learn functional programming in Python
by jacquesm on Sunday February 21, 2010 @04:13PM
(#1141248)
Functional programming is a technique, and that technique is best expressed using languages designed for the purpose.
Python has enough elements of functional programming languages that it should be relatively easily done, but it won't be 'the real deal'.
The interesting thing is that this exercise will probably make you a better python programmer, mutable state, side effects and parameter modification are 'bad' traits anyway, and getting functions to always return the same result dependent solely on the input parameters is 'good'.
Python has enough elements of functional programming languages that it should be relatively easily done, but it won't be 'the real deal'.
The interesting thing is that this exercise will probably make you a better python programmer, mutable state, side effects and parameter modification are 'bad' traits anyway, and getting functions to always return the same result dependent solely on the input parameters is 'good'.
This may be of some help:
http://norvig.com/python-lisp.html
It's intended for lisp programmers to make it to python, but I think plenty of the stuff in there should apply to your situation.