Examples of ‘for’ queries with Scala
On this page you are going to find some examples of ‘for’ queries.
Let’s start by defining the following database:
1case class Book(title: String, authors: List[String])
2
3val books: List[Book] = List(
4 Book("structure and interpretation …