Last active
February 10, 2017 19:29
-
-
Save vvviiimmm/5daece60d6fb9905793a825be2c04e07 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 val bob = "Bob" | |
def greet(implicit name: String) = { | |
println(s"Hello, $name!") | |
} | |
// usage | |
greet | |
// outputs "Hello, Bob!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment