Created
November 23, 2010 16:29
-
-
Save timperrett/712032 to your computer and use it in GitHub Desktop.
The book store domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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