4 ms·
List comprehensions. Because the syntax is powerful, concise and readable at the same time. It closely reassembles mathematical set notation, making it fairly
by adambyrtek 16y ago
List comprehensions.
Because the syntax is powerful, concise and readable at the same time. It closely reassembles mathematical set notation, making it fairly easy to grasp. Moreover many interesting problems can be expressed in terms of list comprehensions (like the Norvig's spelling corrector[1]).
[1] http://norvig.com/spell-correct.html http://norvig.com/spell-correct.html