Join Slack
Powered by
Is there a find or throw method on lists?
# getting-started
k
Kenneth
08/16/2022, 10:45 AM
Is there a find or throw method on lists?
s
Sam
08/16/2022, 10:47 AM
.first { }
will throw if it doesn’t find a match
o
Oliver.O
08/16/2022, 4:03 PM
Just keep in mind that exceptions might not be the right tool for the job:
https://elizarov.medium.com/kotlin-and-exceptions-8062f589d07
Open in Slack
Previous
Next