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
Available in finite maps, bind adds a new key-value pairing. bind! is the mutating version.
m = finite-map.empty;
lookup "foo" m;
⇒ error: not found
m2 = bind "foo" "bar" m;
lookup "foo" m2
⇒ "bar"
lookup "foo" m;
⇒ error: not found
bind! "foo" "baz" m;
lookup "foo" m;
⇒ "baz"