Union Types

by James Phillips

A union type is something which can be realised as one of many (usually two) types. Either is an example in scala — Either can be Left[A] or Right[B]— a value of either type can be used in a place where we ask for an Either[A,B].


Functional Programming at AnyJunk

At AnyJunk we are a building logistics platform using Scala/Cats for the back-end and React/Redux…