there are some things in Kotlin that will trip you up if you’re coming from Swift, like collection operators. case in point is `first` which in Swift returns null on not finding a match but in Kotlin it throws an exception. to get the expected Swift behavior in Kotlin you need to use `firstOrNull` and there are other collection operations that follow a similar pattern

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!