You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/12/18 22:01:54 UTC

[GitHub] [groovy] eric-milles edited a comment on pull request #1444: GROOVY-9865: Add some DGM methods for primitive arrays

eric-milles edited a comment on pull request #1444:
URL: https://github.com/apache/groovy/pull/1444#issuecomment-748339728


   Does it make sense to implement `max(int[])` using `IntStream`'s `max` method?  Like `IntStream.of(self).max().orElseThrow(() -> new UnsupportedOperationException(...));`?  And similarly for long and double arrays?  Essentially, the `max` DGM is just shorthand for `ints.stream().max().asInt`.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org