Created
July 14, 2018 12:29
-
-
Save sajjadyousefnia/f4d100c3ff7dc29499fb031f47305a9c to your computer and use it in GitHub Desktop.
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
fun main(args: Array<String>) { | |
val sajjad = "adult" | |
val sina = "child" | |
sajjad.thefunction(sina) | |
} | |
fun String.thefunction(sina: String) { | |
print(this) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment