Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created November 23, 2010 16:29
Show Gist options
  • Save timperrett/712032 to your computer and use it in GitHub Desktop.
Save timperrett/712032 to your computer and use it in GitHub Desktop.
The book store domain
case class Book(publisher: String, title: String)
object Bookshop {
val stock = List(
Book("Bloomsbury", "Harry Potter and the Deathly Hallows"),
Book("Bloomsbury", "Harry Potter and the Goblet of Fire"),
Book("Manning", "Scala in Depth"),
Book("Manning", "Lift in Action")
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment