Op fusing (was: Stream method survey responses) (original) (raw)

Brian Goetz brian.goetz at oracle.com
Thu Jan 24 12:02:09 PST 2013


Yes, we can (though do not yet) fuse sorted+uniq into a single operation.

On 1/24/2013 2:53 PM, Kevin Bourrillion wrote:

On Thu, Jan 24, 2013 at 9:33 AM, Brian Goetz <brian.goetz at oracle.com_ _<mailto:brian.goetz at oracle.com>> wrote:

sorted -- strong desire to add sorted() which uses natural order (or throws).

+1, I think. Could this perhaps yield other benefits? For example, since users are strenuously urged to make compareTo() consistent with equals() -- or should be urged even more strenuously to do so -- can .uniqueElements().sorted() (in either order) do the smart thing? -- Kevin Bourrillion | Java Librarian | Google, Inc. |kevinb at google.com <mailto:kevinb at google.com>



More information about the lambda-libs-spec-observers mailing list