groovy Collection Operators Filter a list with findAll


Example

def lst = [10, 20, 30, 40]

lst.findAll { it > 25 } // [30, 40]