What is out keyword in kotlin

后端 未结 5 1459
情深已故
情深已故 2021-01-30 06:20

I am not able to understand and I couldn\'t find the meaning of out keyword in kotlin.

You can check example here:

List
         


        
5条回答
  •  青春惊慌失措
    2021-01-30 06:35

    List is like List in Java
    

    and

    List is like List in Java
    

    For example in Kotlin you can do things like

     val value : List = listOf(1,2,3)
    //since List signature is List in Kotlin
    

提交回复
热议问题