by bcrosby95 · 3y ago · 0 comments
A 'NotEmpty a' is just a subclass of a potentially empty 'a'. You also get the desirable behavior, in this scenario, of automatic upcasting of a 'NotEmpty a' into a regular old 'a'.
It is rather the subclass of some kind of 'Iterable a'.