Programming Languages, verification and synthesis.
Indian Institute of Technology, Bombay
What do I have for you?
- Introduction to functional programming
- Daily usage (but do you know about them?)
- What Python has to offer
- Extending the standard offering, Python libraries
Paradigms of programming
- Object oriented
...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!)*
*examples on partial, Haskell reference*
Cons of using Python
- Purely functional hard to achieve...
- Have an intuition on where to use
Hope you enjoyed!
Get in touch :)
"Programs must be written for people to read, and only incidentally for machines to execute."
- Harold Abelson
Catch me at
Teach the lazy snake some functions!
By Sumith Kulal