This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sum4(4) //return 8 | |
div2(4) //return 2 | |
listOf(3,4,6,8,10) | |
.map(sum4) | |
.map(div2) | |
//[3, 4, 5, 6, 7] | |
fun hello(name: String, textDecorator: () -> String): String { | |
return "hello $name ${textDecorator()}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class DataCaptionInfo(private val context: Context) { | |
var name: String by Delegate.prefParam(context,"NAME", "") | |
var lastName: String by Delegate.prefParam(context, "LAST_NAME", "") | |
var email : String by Delegate.prefParam(context, "EMAIL", "") | |
var referalCode: String by Delegate.prefParam(context, "REFERAL_ID", "") |
NewerOlder