Skip to content

Instantly share code, notes, and snippets.

@nefilim
Created August 29, 2013 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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