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