eric-milles opened a new pull request, #1732:
URL: https://github.com/apache/groovy/pull/1732
Adds support for assignment of optional to arrays or collections -- and by
extension an "iterator()" method and for-each iteration. Does not support
spread arguments (aka "def list = [*optional]" or "m(*optional)")
```groovy
Object[] array = optional
List<Object> list = optional
Iterator<Object> optional.iterator()
for (value in optional) { /*...*/ } // ... executed only if value is present
```
https://issues.apache.org/jira/browse/GROOVY-10223
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]