Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
For Calendar and Date, we allow getAt access using the Calendar static constants like YEAR, MONTH, etc.
This gives us multi-assignment for free, e.g.:
(_E, Y, M, _WY, _WM, D) = Calendar.instance
Here we might be interested in just the YEAR, MONTH and DATE/DAY_OF_MONTH. We can use some dummy variables to capture those as above.
But it might also be nice to support (like we do for lists for instance) collections of indices:
(Y, M, D) = Calendar.instance[YEAR, MONTH, DATE]
Attachments
Issue Links
- links to