Guest User

Untitled

a guest
Jan 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. [0,1,2,29,30,31,32]
  2. .collect { [original: it, current: (2 as int) ** it as int, sum: (0..it).collect { (2 as int) ** it as int }.sum()] }
  3. .collect { [original: it.original, current: it.current, chex: Integer.toHexString(it.current), sum: it.sum, shex: Integer.toHexString(it.sum)] }
  4. .each { println it }
Add Comment
Please, Sign In to add comment