Skip to content

Instantly share code, notes, and snippets.

View dchenbecker's full-sized avatar

Derek Chen-Becker dchenbecker

View GitHub Profile
@srogalsky
srogalsky / PatternMatching
Created May 1, 2011 06:24
Complete code from Derek's Pattern Matching presentation with some implicits thrown in to clean up the output. Scala in 2 Days Meetup - Boulder, CO, April 2011
package PatternMatching
import scala.Predef._
object MatchingExamples {
def main(args: Array[String]) {
// Some implicits thrown in to print the outputs
trait NicePrinting {
def printNiceHeading() : Unit