LouisCAD / Splitties

A collection of hand-crafted extensions for your Kotlin projects.
https://splitties.louiscad.com
Apache License 2.0
2.52k stars 158 forks source link

Add executeOnFirstMatch and toggle #302

Open yveskalume opened 1 year ago

yveskalume commented 1 year ago

executeOnFirstMatch is useful when we want to execute an action on the first collection item that match a predicate. toggle is just a function to toggle an item from MutableList