You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across needing polymorphic (but homogeneous) maps, where a 'a t goes from a 'a key to a 'a value (but always the same 'a for the whole map). Then, the MAP_WITH_VALUE interface does not work well (because keys are homogeneous) and the HETEROGENEOUS_MAP is not very convenient (because the functions need the higher-rank polymorphism).
Such a polymorphic map is useful when defining combined maps, e.g. I want a polymorphic map of terms, which is a heterogeneous map from 'a term to a 'a map, but the second map is a map from a 'a term to another 'a term and is this time homogeneous (and defining a fold on this combined map is not easy because of the higher-ranked polymorphism).
How could we integrate this?
The text was updated successfully, but these errors were encountered:
I came across needing polymorphic (but homogeneous) maps, where a 'a t goes from a 'a key to a 'a value (but always the same 'a for the whole map). Then, the MAP_WITH_VALUE interface does not work well (because keys are homogeneous) and the HETEROGENEOUS_MAP is not very convenient (because the functions need the higher-rank polymorphism).
Such a polymorphic map is useful when defining combined maps, e.g. I want a polymorphic map of terms, which is a heterogeneous map from 'a term to a 'a map, but the second map is a map from a 'a term to another 'a term and is this time homogeneous (and defining a fold on this combined map is not easy because of the higher-ranked polymorphism).
How could we integrate this?
The text was updated successfully, but these errors were encountered: