Advertisement
Guest User

Untitled

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