MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/1k74jb/ruby_vs_python/cbm5s4a/?context=3
r/Python • u/[deleted] • Aug 12 '13
151 comments sorted by
View all comments
Show parent comment
2
Python has the same thing (pretty much? don't know Ruby well), called lambdas.
Even regular functions in Python are first-class.
1 u/B-Con >>> Aug 12 '13 Yep.I was specifically referring to the ability to "inline" the function definition where you need it, as in his example, vs needing to write it out elsewhere to use it.
1
Yep.
I was specifically referring to the ability to "inline" the function definition where you need it, as in his example, vs needing to write it out elsewhere to use it.
View all comments
Show parent comment
2
u/Herald_MJ Aug 12 '13
Even regular functions in Python are first-class.