Skip to content

Commit

Permalink
minor: Readme and positioned after traits
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Oct 19, 2023
1 parent 7af51da commit 55ee355
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 32 deletions.
6 changes: 6 additions & 0 deletions exercises/dict/README.md
Original file line number Diff line number Diff line change
@@ -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)
63 changes: 31 additions & 32 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down Expand Up @@ -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]]
Expand Down

0 comments on commit 55ee355

Please sign in to comment.