Key-Value pairs in Motoko

Try this tutorial and its use of Association Lists if you’re looking for similar functionality to Ethereum’s mappings:
https://sdk.dfinity.org/developers-guide/tutorials/phonebook.html

Association List standard library docs are here:
https://sdk.dfinity.org/language-guide/index.html#stdlib-assoclist

7 Likes

(Adding the term ‘dictionary’ so it shows up in search).

2 Likes