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
If we had something like Typeable and a type-safe cast, we could have branch on a subtree given not by just a function Unit -> GenericSpine but also paired with Unit -> Any where for that a : Any and that g : GenericSpine we would have the property that fromSpine g === cast a.
So this way if you want to descend a bit, then do a special case on the data from which some subtree was generated, we could capture that in a single recursion pattern without the overhead of a full to/from roundtrip.
If we had something like
Typeableand a type-safe cast, we could have branch on a subtree given not by just a functionUnit -> GenericSpinebut also paired withUnit -> Anywhere for thata : Anyand thatg : GenericSpinewe would have the property thatfromSpine g === cast a.So this way if you want to descend a bit, then do a special case on the data from which some subtree was generated, we could capture that in a single recursion pattern without the overhead of a full
to/fromroundtrip.