3 ms·
List comprehensions look like this: [f(x) for x in xs] I think you mean the slice syntax (`xs[5:7]`). I don’t see how this is a bad design choice, though.
by notpushkin 1y ago
List comprehensions look like this:
[f(x) for x in xs]
I think you mean the slice syntax (`xs[5:7]`). I don’t see how this is a bad design choice, though.
- rienbdj 1y agoTake a look at F# for a superior list comprehension design.