arr = _arrays.floatArrayOf(1, 2, 3) _console.log(arr) def fn(it): _console.log(it) _objectWrappers.wrap(arr).forEach(fn)