Join Slack
I found myself a couple of time in the case where, given a list of string, I want to drop everything...
# getting-started
e
elect
11/12/2022, 9:16 AM
I found myself a couple of time in the case where, given a list of string, I want to drop everything until a specific line, including the line itself, that is
dropWhile { it != line }.drop(1)
Is there a better way to do this?
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by