3 ms·
> In functional programming, a type is just a function that returns a list of possible values Its literally not; there may be a language which does this or som
by dragonwriter 3y ago
> In functional programming, a type is just a function that returns a list of possible values
Its literally not; there may be a language which does this or something close (actually, I’ve seen narrow, purpose-focussed relational languages where this is the case, and all types are enumerable), but it's definitely not generally the case in functional languages.