Commit 716baa83 authored by Marcel Gerber's avatar Marcel Gerber

Exercise 10

parent 8ca53e3c
package fp10
sealed trait Customer {
case class IndividualClient(name: String, phoneNumber: Option[String])
case class BusinessClient(name: String, phoneNumbers: NonEmptyList[String])
package fp10
case class NonEmptyList[A](head: A, tail: List[A])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment