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
The existing set op unconditionally returns the old value in the list. This is necessary when the elements of the list have a linear type, but when the elements of the list have a copyable type this can be inefficient for large elements.
I suggest we rename the existing set to swap, and add set which does not return the old value and which requires that the element type is copyable.
The text was updated successfully, but these errors were encountered:
The existing
set
op unconditionally returns the old value in the list. This is necessary when the elements of the list have a linear type, but when the elements of the list have a copyable type this can be inefficient for large elements.I suggest we rename the existing
set
toswap
, and addset
which does not return the old value and which requires that the element type is copyable.The text was updated successfully, but these errors were encountered: