Link Details

Link 746763 thumbnail
User 974613 avatar

By cjsmith
via css.dzone.com
Published: Feb 17 2012 / 08:41

Fredrik Håård provides a unique twist on comprehensions and how best to explain them to programmers. While most sources start out with 'this is how its done in math, so...', Fredrik believes that for programmers, a list comprehension is simply a for loops for constructing lists, using a more declarative notation than a typical loop.
  • 9
  • 0
  • 1489
  • 807

Comments

Add your comment
User 904793 avatar

threepipeproblem replied ago:

0 votes Vote down Vote up Reply

Why would you want to explain list comprehensions to a non-programmer?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)



    Java EE7
    Written by: Andrew Lee Rubinger
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. CI Patterns
    5. CI Tools
    1. Spring Integration
    2. Git
    3. Regex
    4. Java
    5. REST