concept sum in category swift

appears as: sum, sum
Swift in Depth

This is an excerpt from Manning's book Swift in Depth.

2.4.3. Distributing a sum over an enum

I won’t focus only on theory regarding sum and product types, either. You’re not here to write a dry, theoretically based graduate paper, but to produce beautiful work.