Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [0,1,2,29,30,31,32]
- .collect { [original: it, current: (2 as int) ** it as int, sum: (0..it).collect { (2 as int) ** it as int }.sum()] }
- .collect { [original: it.original, current: it.current, chex: Integer.toHexString(it.current), sum: it.sum, shex: Integer.toHexString(it.sum)] }
- .each { println it }
Add Comment
Please, Sign In to add comment