Skip to content

Instantly share code, notes, and snippets.

@adamw
Last active May 4, 2019 12:37
Show Gist options
  • Save adamw/d7810ad8b4dce125d9994e6ef372a091 to your computer and use it in GitHub Desktop.
Save adamw/d7810ad8b4dce125d9994e6ef372a091 to your computer and use it in GitHub Desktop.
object Database {
var books: List[Book] = List(
Book(UUID.randomUUID(), "The Sorrows of Young Werther", new Year(1774),
Author("Johann Wolfgang von Goethe", Country("Germany"))),
Book(UUID.randomUUID(), "Iliad", new Year(-8000),
Author("Homer", Country("Greece"))),
Book(UUID.randomUUID(), "Nad Niemnem", new Year(1888),
Author("Eliza Orzeszkowa", Country("Poland"))),
Book(UUID.randomUUID(), "The Colour of Magic", new Year(1983),
Author("Terry Pratchett", Country("United Kingdom"))),
Book(UUID.randomUUID(), "The Art of Computer Programming", new Year(1968),
Author("Donald Knuth", Country("USA"))),
Book(UUID.randomUUID(), "Pharaoh", new Year(1897),
Author("Boleslaw Prus", Country("Poland")))
)
var bookCovers: Map[UUID, Path] = Map.empty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment