4 ms·
Note, I wasn't criticizing the python implementation. It's a perfectly reasonable way to model the problem. You brought up list comprehensions, and something
by ataggart 16y ago
Note, I wasn't criticizing the python implementation. It's a perfectly reasonable way to model the problem.
You brought up list comprehensions, and something about being "blasé about using map". I wanted to show how a different way of modeling the problem yields a different structure to the code (namely, as a chain of transformations on sequences).
One is not better or worse than another. One of the things I enjoyed most about learning clojure was forcing myself to think in these different ways.