Is it possible to do a conditional collectEntries like collect ?
[ a:1, b:2, c:3, d:4 ].findAll { it.value > 2 }
should do it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With