Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groovy:000> (1..6).collect { it > 1 && it < 4 }
- ===> [false, true, true, false, false, false]
- groovy:000> (1..6).find { it > 1 && it < 4 }
- ===> 2
- groovy:000> (1..6).findAll { num -> num > 1 && num < 4 }
- ===> [2, 3]
Add Comment
Please, Sign In to add comment