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
Reminder: This is what forall means in this context
-- Here, the second forall means the same function-- can work for different types. In this case, it-- works for both the `a` type and `b` type.f::forallab. a->b-> (forallc. c->String) ->String
f a b function = (function a) <> (function b)
-- where toString is an example of such a functiontoString::foralla. a->String
toString _ = "some value"-- this should compile
(f "hello"4 toString) == "some valuesome value"
See why does type-level reification define forall separately from the reifying function.
I've looked into this more and my response does not compile.
The text was updated successfully, but these errors were encountered: