Skip to content

Instantly share code, notes, and snippets.

@stasimus
Created August 7, 2018 13:04
type InType = Either[ShipmentsRequest, Either[TrackRequest, Either[PricingRequest, Either[Ping.type, CNil]]]]
// match the PricingRequest
inMessage match {
case Right(Right(Left(value))) => value
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment