5 ms·
> as long as you define the interface appropriately Well, if you have an interface that all entries adhere to it is not a heterogeneous list in my book. In Has
by cies 2y ago
> as long as you define the interface appropriately
Well, if you have an interface that all entries adhere to it is not a heterogeneous list in my book. In Haskell that could be achieve without a sum type wrapper, but with a type class.
https://fluoridealert.org/key-topics/tsca-fluoride-lawsuit/ https://fluoridealert.org/key-topics/tsca-fluoride-lawsuit/
- fluoridation 2y agoI mean, a heterogeneous list is literally a list where its elements may be of different types. To use a tired example, if a list that contains both a Cat and a Dog is not heterogeneous just because both adhere to the Mammal interface, then what is a heterogeneous list?