arr = _arrays.booleanArrayOf(True, False) _console.log(arr) def fn(it): _console.log(it) _objectWrappers.wrap(arr).forEach(fn)