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
Cannot apply "|>" to "takefrom xs" (invalid type).
Expected: a₂ -> b₃
Actual: (i: i64) -> [i + 1]i32
Parameter(s) "i" used as size(s) would go out of scope.
But it works if we use this definition of takefrom:
deftakefrom't (xs: []t) (i: i64) : [i]t=takeixs
In this case the size that goes out of scope is just turned into an existential. I suspect the code that detects this case does not handle nontrivial expressions properly. I see no reason not to always decay to an existential in such cases.
The text was updated successfully, but these errors were encountered:
This does not work:
But it works if we use this definition of
takefrom
:In this case the size that goes out of scope is just turned into an existential. I suspect the code that detects this case does not handle nontrivial expressions properly. I see no reason not to always decay to an existential in such cases.
The text was updated successfully, but these errors were encountered: