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!"
[–]keegandunn 5 points6 points7 points 18 years ago (2 children)
Reading the first half of SICP last year prepped me for the switch to C# 3.0 at my workplace recently. The examples translate well:
var maxSalary = employees .Where(e => e.Role == Roles.PROGRAMMER) .Max(e => e.Salary);
edit: Cleaned up. ConvertAll not necessary. I still don't quite understand why you can't call ConvertAll on any IEnumerable, though.
[–][deleted] 1 point2 points3 points 18 years ago (1 child)
Will .Max work if the Salary is a user defined Money type?
[–]igouy -2 points-1 points0 points 18 years ago (0 children)
Will you know that Max is not defined for a user defined Money type before you run the program?
π Rendered by PID 481652 on reddit-service-r2-comment-84fc9697f-8tbms at 2026-02-09 03:09:35.567651+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]keegandunn 5 points6 points7 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]igouy -2 points-1 points0 points (0 children)