Next Types Are Theorems; Programs Are Proofs 24

Union types

             ... :: Either a b
        -- x :: a
        -- y :: b
        Left x  :: Either a b
        Right y :: Either a b

continued...
Next Copyright © 2014 M. J. Dominus