Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Groovy Shell (2.4.5, JVM: 1.8.0_91)
- Type ':help' or ':h' for help.
- -------------------------------------------------------------------------------
- groovy:000> ({c->(1..10).each{println it*c}})(20)
- 20
- 40
- 60
- 80
- 100
- 120
- 140
- 160
- 180
- 200
- ===> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement