Indian Institute of Technology, Bombay
by
What do I have for you?
Paradigms of programming
...and Python is a mixed bag!
==
What is a functional program?
I use functions all day...
Think mathematically, y = f (x)
Functions in Python
Python has first-class functions
Functions can take in functions as arguments
Functions can return functions
Time to get some action!
*demo on first order function*
*introduction to lambdas, anon functions*
*built-ins, filter, map, etc.
though list comprehension (yay!)*
import functools
*examples on partial, Haskell reference*
*decorators*
Cons of using Python
Get in touch :)
"Programs must be written for people to read, and only incidentally for machines to execute."
- Harold Abelson
Catch me at