kotlin-stdlib / kotlin.sequences / sequenceOf sequenceOf Common JVM JS Native 1.0 fun <T> sequenceOf(vararg elements: T): Sequence<T>(source) Creates a sequence that returns the specified values. import kotlin.test.* fun main(args: Array<String>) { //sampleStart val sequence = sequenceOf("first", "second", "last") sequence.forEach(::println) //sampleEnd }