Guest User

Untitled

a guest
Jan 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. show = { println it }
  2. square_root = { Math.sqrt(it) }
  3.  
  4. def please(action) {
  5. [the: { what ->
  6. [of: { n-> action(what(n)) } ]
  7. }]
  8. }
  9.  
  10. please show the square_root of 100
  11. //please(show).the(square_root).of(100)
Add Comment
Please, Sign In to add comment