Skip to content

Instantly share code, notes, and snippets.

@nefilim
Created August 29, 2013 21:16
Show Gist options
  • Save nefilim/6383524 to your computer and use it in GitHub Desktop.
Save nefilim/6383524 to your computer and use it in GitHub Desktop.
val map = Map[String, () => Unit]("a" -> proc1, "b" -> proc2)
def proc1() {
println("doing stuff")
}
def proc2() {
println("doing other stuff")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment