Last active
July 15, 2020 07:57
-
-
Save goshki/0e674d215c9b0edc40e623de5f1d629f to your computer and use it in GitHub Desktop.
Kotlin string infix function test
This file contains 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
infix fun String.dupa(dupa:String) = dupa | |
fun main(dupargs:Array<String>) { | |
var dupa = "dupa"; | |
dupa = dupa dupa dupa | |
println("dupa: $dupa") // output: dupa: dupa | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment