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
def trip (a a (a a -> a) -> (a & a & a)):
-> { a b c }
a b f@ -> x
a b f@ -> y
a b f@ -> z
x y z pair pair
But the behavior that most would probably expect would be for invocations of f to still be valid when applied multiple times, the same way any normal local can be pushed onto the stack multiple times after it is bound.
It should be possible to write this function:
But its type is:
When it should be the rank-2:
So the compiler complains because
f
is applied to different stack types.The text was updated successfully, but these errors were encountered: