3 ms·
List comprehensions aren't quite the same thing; they are declarative but they describe an iterative method of creating lists through maps and filters, whereas
by Daishiman 6y ago
List comprehensions aren't quite the same thing; they are declarative but they describe an iterative method of creating lists through maps and filters, whereas optics are semantically oriented around traversals and projections.
- platz 6y agoisn't that what I said?
- 082349872349872 6y agoThe nice thing about comprehensions is that, depending upon how one looks at them, they can be declaratively defined yet iteratively implemented.