def arr = $arrays.newIntArray(2) def aw = $objectWrappers.wrap(arr) aw.set(0, 1) aw.set(1, 2) $console.log(arr) aw.forEach { $console.log(it) }