Maps store relational data. Maps are not iterable to maintain decidability and deterministic execution cost.
clarity (define-map Balances principal uint) (map-set Balances tx-sender u500)
100 XP to Apprentice
Key-value storage for collections.
AI translates the explanation and quiz text while preserving code and answer scoring.
Maps store relational data. Maps are not iterable to maintain decidability and deterministic execution cost.
clarity (define-map Balances principal uint) (map-set Balances tx-sender u500)
1. Can you iterate through all keys in a Clarity map?
2. How do you fetch a value from a map?