Does anyone have any good examples where types as first-class objects come to hand?
I think it helps to simply implement some mathematical concepts, indeed, these are the examples I'm looking for.
UPD To clarify the question, what can be done if it is possible to make functions that accept types and return types, or store types in variables?
I am studying Aldor , although due to a license issue, he is a little dead. There, types are called first-class objects, at least above.
source share