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  Can I use Kotlin for Web development?

Leave a Reply

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