l = _iterables.listOf(1, 2, 3) s = _iterables.toSequence(l) def fn(it): _console.log(it) _objectWrappers.wrap(s).forEach(fn)