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
"a function fits an interface if a) its argument type is equal-to or less specific and b) its result type is equal-to or more specific than those of the interface"
no, i'm describing %iron / |~` / ^| / $-
%lead / ^? is bivariant
%lead / ^? is bivariant (wrt the payload)
(in a completely trivial way, since the payload is not observable from outside the core)
%lead and %gold (invariant) pertain to the entire payload, %iron and %zinc pertain to the sample (head of the payload), and both have an effectively %lead context (tail of the payload). additionally, %iron lets you write but not read the sample, while %zinc lets you read but not write the sample
and yes, all 4 are covariant (ie, follow normal nesting rules) with regard to the products of their arms
The text was updated successfully, but these errors were encountered:
~master-morzod:
The text was updated successfully, but these errors were encountered: