sequenceOf

fun <T> sequenceOf(vararg elements: T): Sequence<T> (source)

Creates a sequence that returns the specified values.

import kotlin.test.*
import kotlin.coroutines.experimental.buildIterator
import kotlin.coroutines.experimental.buildSequence

fun main(args: Array<String>) {
//sampleStart
val sequence = sequenceOf("first", "second", "last")
sequence.forEach(::println)
//sampleEnd
}