Using the rangev3 library I can do this:
auto march = view::iota(1,32)
| view::transform(
[](int i){return date(1995, greg::Mar, i);
});
giving me the dates in the march of 1995:
1995-Mar-01
...
1995-Mar-31
Is there a way to do this in a syntax even closer to pythons:
[date(1995, Mar, i) for i in range(32)]
In particular I feel beginning with the date/function aids the readability of the code.