@Sumith1896
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
GitHub: Sumith1896
Twitter: @Sumith1896
Facebook: Sumith Kulal
Email: sumith1896@gmail.com
Get in touch :)
"Programs must be written for people to read, and only incidentally for machines to execute."
- Harold Abelson
Catch me at
By Sumith Kulal
Presentation of the talk "Teach the lazy snake some functions!" *hopefully* to be delivered at IIT Bombay (WnCC)
Programming Languages, verification and synthesis.