Advertisement
Guest User

Untitled

a guest
Mar 20th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.15 KB | None | 0 0
  1. def toto(s: String): Unit = {
  2.   println(s)
  3. }
  4.  
  5. def call(f: String => Unit) {
  6.   f("toto")
  7. }
  8.  
  9. def call(f: Unit => Unit) {
  10.   f()
  11. }
  12.  
  13. call(toto)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement