Last active
February 17, 2017 23:59
-
-
Save vvviiimmm/44825ac30cbc3a9e63f1f58144bd6d07 to your computer and use it in GitHub Desktop.
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
implicit def intToStr(num: Int): String = s"The value is $num" | |
42.toUpperCase() // evaluates to "THE VALUE IS 42" | |
def functionTakingString(str: String) = str | |
// note that we're passing int | |
functionTakingString(42) // evaluates to "The value is 42" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment