where is the trigger point when using sequence in kotlin?
I'm studying kotlin in official site.
I understand that the sequence has two type operation(intermediate, terminal).
And the intermediate operation is triggered when the terminal operation is called.
What I want to know is that the trigger point when the terminal operation is called.
I deep dive into the code but couldn't find the source code.
Where is the trigger source code?
public fun Sequence.toList(): List {
return this.toMutableList().optimizeReadOnlyList()
}
public fun...