The Listing 5.5 code sample includes:
import AccountRepository._
val account = checkingAccount("a-123", "John K.", today.some,
None, Balance(0)).toOption.get #A
val dsl = for {
b <- updateBalance(account, 10000) #B
c <- store(b)
d <- balance(c.no)
} yield d
Would it be worthwhile to include that `Option#get` is a method that should never be used (since it's Partial), but OK to use in a test?
|