Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're not teaching pythons functional concepts, then you're not teaching python.

However I think you have accidentally... consider this short example which shows off first class functions, map, reduce, no side effects, and filtering.

  [(lambda a,b,p:(a+p,b+p))(x,y,2) for x in (1,4) for y in (10,15,22) if x*y > 25]
Python does functional programming without people even knowing that it is functional programming :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: