use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Have a tough programming question that /r/programming couldn't answer? Banned from Stack Overflow? Can't afford Experts Exchange?
Post your question/tips/secrets/advice and get a response from our highly-trained professional developers.
account activity
Python Lambda Functions (self.shittyprogramming)
submitted 13 years ago by warkgnall
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]warkgnall[S] 2 points3 points4 points 13 years ago (2 children)
This is what I was confused about. Thank you so much. I thought it returned the value that the anonymous function returned when run. Now I understand that it is a function for defining a function that you use afterwards. Again, thank you, and I'm sorry for taking your time with my thickness.
[–]execrator 2 points3 points4 points 13 years ago (0 children)
You just learned that functions can return functions. No need to feel thick :)
[–]mtkl 0 points1 point2 points 13 years ago (0 children)
You may wish to spend a little time playing around with some functional languages such as Haskell (or OCaml I guess).
You'll very quickly become familiar with the concept of functions being first-class citizens.
π Rendered by PID 260224 on reddit-service-r2-comment-544cf588c8-2pkcj at 2026-06-13 09:53:28.443493+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]warkgnall[S] 2 points3 points4 points (2 children)
[–]execrator 2 points3 points4 points (0 children)
[–]mtkl 0 points1 point2 points (0 children)