l = $iterables.listOf(1, 2, 3) s = $iterables.toSequence(l) $objectWrappers.wrap(s).forEach { |it| $console.log(it) }