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  How do I show view in Xcode?

Leave a Reply

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