- list.each { println it}
- Iterate over each element of a collection.
- list.collect { it * it }
- Collect a set of values for a new list
- list.findAll { it > 50000 }
- Select a subset of a list that passes a certain criteria.
- list.find { it == 50000 }
- Return the first element that passes a certain criteria.
- list.every { (it % 2) == 0 }
- Return true if every member of a list passes a criteria
- list.any { (it % 2) == 0 }
- Return true if any member of a list passes a criteria