Producing streams in java.time?
Tagir F. Valeev
amaembo at gmail.com
Sat Dec 19 05:50:04 UTC 2015
Fix for the previous letter:
TFV> IntStream.range(1, YearMonth.now().lengthOfMonth())
TFV> .mapToObj(YearMonth.now()::atDay)
TFV> .map(...).forEach(...)
Of course I meant IntStream.rangeClosed instead of IntStream.range in
every code sample. This just demonstrates that manual implementation
of such feature is error-prone.
With best regards,
Tagir Valeev.
More information about the core-libs-dev
mailing list