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'm pretty sure that the problem is not trying to call (apply) the passed-in function p, because that's working fine in this code:
TRUE := (t, f) => { t }
or := (this, that) => { this(TRUE, that) }
or(TRUE, TRUE)
I think the problem is that the inner function in Pair isn't able to get f and s. I believe I came across the same issue when I attempted to implement closures (and backed it out when it didn't work right). In fact, I think the actual problem here is that closures aren't working properly.
The text was updated successfully, but these errors were encountered:
This code does not work as expected:
I'm pretty sure that the problem is not trying to call (apply) the passed-in function
p
, because that's working fine in this code:I think the problem is that the inner function in
Pair
isn't able to getf
ands
. I believe I came across the same issue when I attempted to implement closures (and backed it out when it didn't work right). In fact, I think the actual problem here is that closures aren't working properly.The text was updated successfully, but these errors were encountered: