mapCatching for Collections in Standard Library?

Thanks for the constructive feedback. You’re correct that this was a very simple thing to implement, and I like your take on a different approach to the same solution as well!

After reading the comment about Result, I decided to do some more digging and found this thread: State of Kotlin.Result vs. kotlin-result? - #4 by Ilmir.Usmanov . It seems like the future of Kotlin Result and its use-cases is uncertain, so I’m willing to admit that this mapCatching suggestion may not be the correct thing to add to the standard library after all.