Did you know that Kotlin can smart-cast a variable in response to calling your own functions? Well, today we’re going to use Kotlin's experimental Contracts feature to make that happen!
Contracts proposal:
[ Ссылка ]
✨ New to Kotlin? Start here: [ Ссылка ]
... or pick up the new Leanpub Edition! [ Ссылка ]
🚀 I just launched a new email newsletter!
Sign up here: [ Ссылка ]
Ещё видео!