Got a callback-based library in your Kotlin code? Don't litter your main project code with them! Instead, just create a thin adapter layer that converts them to coroutines. I'll show you how.
Kotlin 2.4 finally introduces Collection Literals, so that we can declare our collections with brackets instead of manually calling functions. And when we put them together with the new name-based destructuring feature, we end up with a particularly cool effect.
By popular request, we're continuing the series about Kotlin's Flow API, this time looking at the two kinds of hot flows - SharedFlow and StateFlow. In less than 15 minutes, you'll learn the most important things you need to know about them.
Poznaj funkcje w Kotlinie w łatwy i zabawny sposób, z mnóstwem przykładów i ilustracji! Funkcje jako wyrażenia, funkcje z ciałem w bloku, argumenty nazwane, argumenty domyślne i wiele więcej.
A więc chciałbyś zostać programistą Kotlina? Dobrze trafiłeś! Twoja przygoda zaczyna się tu, w Rozdziale 1, z którego dowiesz się wszystkiego o zmiennych, wyrażeniach i typach.