skip, limit and slice (original) (raw)
Remi Forax forax at univ-mlv.fr
Wed Dec 5 06:38:42 PST 2012
- Previous message: Remove cumulate from Stream interface
- Next message: skip, limit and slice
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip and limit can be written using slice(), limit(n) => slice(0, n) skip(n) => slice(n, Long.MAX_VALUE)
so there are not strictly needed. Given that limit() is a known idiom, may be only limit() and skip() should be kept with the default implementation of limit() calling slice(0, limit).
cheers, Rémi
- Previous message: Remove cumulate from Stream interface
- Next message: skip, limit and slice
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-experts mailing list