as Sorted Key Values
Converts this SortedSequence to a SortedKeyValueSequence.
Example:
val sequence = sequenceOf("az", "by", "cx").assertSortedBy { it.first() }
val keyValueSequence = sequence.asSortedKeyValues()
assertEquals(listOf('a' to "az", 'b' to "by", 'c' to "cx"), keyValueSequence.toList())
Content copied to clipboard
Return
A SortedKeyValueSequence with the same elements as this sequence