What is () -> unit in Kotlin?

The Unit type in Kotlin is the equivalent to the void type in Java . Or, if you prefer, is the result value of any statement (for example println() ).

Sizin İçin Seçtik  Dolar endeksi neyi etkiler?

Leave a Reply

Your email address will not be published. Required fields are marked *