×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Scala
Posted by: Komsit Prakobphol
Added: Aug 30, 2016 6:36 AM
Views: 11
  1. class BlingString(string: String) {
  2.     def bling = "*" + string + "*"
  3.   }
  4.  
  5.   implicit def blingYoString(string: String) = new BlingString(string)