ch07: either-script.scala