eric-milles commented on PR #1839:
URL: https://github.com/apache/groovy/pull/1839#issuecomment-1368484663

   And since `find` and `findAll` are based on groovy truth, to get a default 
value, you can just pepper in elvis:
   ```groovy
   def list = [null,false,'',[]]
   def result = list.find() ?: 'defaultValue'
   assert result == 'defaultValue'
   ```
   
   


-- 
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]

Reply via email to