Guest User

Untitled

a guest
Apr 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.19 KB | None | 0 0
  1.  List({
  2.     i: Int => "i2s"
  3.   }, {
  4.     i: String => "s2s"
  5.   }).foreach(_ match {
  6.     case i2s: (String => String) => println("s2s")
  7.     case i2s: (Int => String) => println("i2s")
  8.   })
Add Comment
Please, Sign In to add comment