That should get you started. It's possible that you won't be able to do that with a generic T and will need to specify your class directly. Generics and protocols can be finicky.
🙏 1
a
ankushg
11/03/2021, 5:52 PM
Thanks for that tidbit @Sam!
I'm curious if anyone has put together a collection of these kinds of utilities to make Kotlin/Swift ergonomics a bit better… it might be tricky to package and redistribute though