Creates a sequence that returns the specified values.
import kotlin.test.* fun main() { //sampleStart val sequence = sequenceOf("first", "second", "last") sequence.forEach(::println) //sampleEnd }
Thanks for your feedback!