`map-insert` sets a value only if the key does not exist. `map-set` sets or updates regardless. `map-delete` removes entries.
clarity (map-insert Balances tx-sender u100) (map-delete Balances tx-sender)
100 XP to Apprentice
Managing map entries safely.
AI translates the explanation and quiz text while preserving code and answer scoring.
`map-insert` sets a value only if the key does not exist. `map-set` sets or updates regardless. `map-delete` removes entries.
clarity (map-insert Balances tx-sender u100) (map-delete Balances tx-sender)
1. What does map-insert return if the key already exists?
2. Which function deletes a key from a map?