Skip to content

Instantly share code, notes, and snippets.

@daiksy
Created December 3, 2012 12:46
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 daiksy/4194816 to your computer and use it in GitHub Desktop.
Save daiksy/4194816 to your computer and use it in GitHub Desktop.
irof_Advent
case class irof (formula: Boolean)(irofBlock: => Unit) {
formula match {
case true => irofBlock
case _ =>
}
def elof(elofBlock: => Unit): Unit = {
formula match {
case false => elofBlock
case _ =>
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment