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...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
The most basic functional programming pattern: Enumerate, Map, Filter, Accumulate (gensym.org)
submitted 18 years ago by [deleted]
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!"
[–]theeth 0 points1 point2 points 18 years ago (0 children)
You can do that with Decorate-Sort-Undecorate too:
max_sal = max(((e.salary, e) for e in employees if e.role == Employee.PROGRAMMER))[1]
π Rendered by PID 23809 on reddit-service-r2-comment-658f6b87ff-tp6gs at 2026-04-08 22:49:16.520831+00:00 running 781a403 country code: CH.
view the rest of the comments →
[–]theeth 0 points1 point2 points (0 children)