[
https://issues.apache.org/jira/browse/GROOVY-8899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun resolved GROOVY-8899.
--------------------------------
Resolution: Fixed
Fixed by
https://github.com/apache/groovy/commit/43c75a23f43dc8968471927fd8a7d8119290d7ec
> Add DGSM `first` and `last`
> ---------------------------
>
> Key: GROOVY-8899
> URL: https://issues.apache.org/jira/browse/GROOVY-8899
> Project: Groovy
> Issue Type: Improvement
> Reporter: Daniel Sun
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 3.0.0-alpha-4
>
>
> {code:java}
> void testFirst() {
> assert 2 == Stream.of(2, 3, 6, 5).collect(Collectors.first()).get()
> }
> void testLast() {
> assert 5 == Stream.of(2, 3, 6, 5).collect(Collectors.last()).get()
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)