Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object ImplicitParm extends App {
- val input:String = args(0)
- def greet(s2:String)=s1+" : "+s2
- implicit val s1="Name"
- println(greet(input))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement