2 ms·
Inductive data types are defined by how they are constructed, while coinductive types are defined by how they are deconstructed (or observed). It's object insta
by brandonbloom 13y ago
Inductive data types are defined by how they are constructed, while coinductive types are defined by how they are deconstructed (or observed). It's object instantiation vs field destructuring/patten matching. Turns out that OOP and protocols give you uniform deconstruction of objects (like destructuring first/rest from a sequence). Co-monads are basically objects!