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
also mut would be used in function prototype to indicate whether the value is mutable or not. if it is primitive then the copy passed to the function would be mutated. if it is a reference then the original object would be mutated.
Example:
funmutate(mp: mut map<int, bool>) {
mp[1] =true
}
funmain() {
let m = make(map<int, bool>)
mutate(m)
print(mp[1]) // true
}
No description provided.
The text was updated successfully, but these errors were encountered: