diff --git a/exercises/dict/README.md b/exercises/dict/README.md new file mode 100644 index 000000000..1ee208623 --- /dev/null +++ b/exercises/dict/README.md @@ -0,0 +1,6 @@ +# Dicts +The Felt252Dict maps a felt252 to a value of the specified type. + +## Further information + +- [Dictionaries](https://cairo-book.github.io/ch03-02-dictionaries.html) diff --git a/info.toml b/info.toml index 5969e28cc..4bcac8b3d 100644 --- a/info.toml +++ b/info.toml @@ -380,38 +380,6 @@ Looking at the test functions will also help you understand more about the synta This section will help you understanding more about methods https://cairo-book.github.io/ch05-03-method-syntax.html """ -# DICT - -[[exercises]] -name = "dict1" -path = "exercises/dict/dict1.cairo" -mode = "test" -hint = """ -More info about the Felt252Dict type can be found in the following chapter : -https://cairo-book.github.io/ch03-02-dictionaries.html -""" - - -[[exercises]] -name = "dict2" -path = "exercises/dict/dict2.cairo" -mode = "test" -hint = """ -More info about the Felt252Dict type can be found in the following chapter : -https://cairo-book.github.io/ch03-02-dictionaries.html -""" - - -[[exercises]] -name = "dict3" -path = "exercises/dict/dict3.cairo" -mode = "test" -hint = """ -Example of custom data structures using dicts can be found in this chapter : -https://cairo-book.github.io/ch03-03-custom-data-structures.html -""" - - # MOVE SEMANTICS [[exercises]] @@ -537,6 +505,37 @@ If you're having trouble updating the distance value in the `Fish` and `Dog` imp 3. Reconstruct `self` with the updated variables (`self = MyStruct { ... }`) """ +# DICT + +[[exercises]] +name = "dict1" +path = "exercises/dict/dict1.cairo" +mode = "test" +hint = """ +More info about the Felt252Dict type can be found in the following chapter : +https://cairo-book.github.io/ch03-02-dictionaries.html +""" + + +[[exercises]] +name = "dict2" +path = "exercises/dict/dict2.cairo" +mode = "test" +hint = """ +More info about the Felt252Dict type can be found in the following chapter : +https://cairo-book.github.io/ch03-02-dictionaries.html +""" + + +[[exercises]] +name = "dict3" +path = "exercises/dict/dict3.cairo" +mode = "test" +hint = """ +Example of custom data structures using dicts can be found in this chapter : +https://cairo-book.github.io/ch03-03-custom-data-structures.html +""" + # MODULES [[exercises]]