3 ms·
You’re doing it wrong :) users.apply { asSequence() filter { it.lastName.startsWith("S") sortedBy { it.lastName } take(3) } (total
by andrewshadura 7y ago
You’re doing it wrong :)
users.apply {
asSequence()
filter { it.lastName.startsWith("S")
sortedBy { it.lastName }
take(3)
}
(totally untested)