Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercises on dicts #161

Merged
merged 4 commits into from
Oct 19, 2023
Merged

Exercises on dicts #161

merged 4 commits into from
Oct 19, 2023

Conversation

chachaleo
Copy link
Contributor

Resolves: #66

I created 3 exercises about the Felt252Dict data type

Copy link
Collaborator

@enitrat enitrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

exercises/dict/dict1.cairo Outdated Show resolved Hide resolved
exercises/dict/dict1.cairo Show resolved Hide resolved



fn multiply_element_by_10(ref a: Felt252Dict<u32>, n: usize) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fn multiply_element_by_10(ref a: Felt252Dict<u32>, n: usize) {
fn multiply_element_by_10(ref dict: Felt252Dict<u32>, n: usize) {

a is not a very meaningful variable name

exercises/dict/dict3.cairo Outdated Show resolved Hide resolved
exercises/dict/dict3.cairo Outdated Show resolved Hide resolved
exercises/dict/dict1.cairo Outdated Show resolved Hide resolved
exercises/dict/dict1.cairo Outdated Show resolved Hide resolved
exercises/dict/dict2.cairo Outdated Show resolved Hide resolved
exercises/dict/dict3.cairo Outdated Show resolved Hide resolved
exercises/dict/dict3.cairo Outdated Show resolved Hide resolved
Copy link
Owner

@shramee shramee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, Thanks!!

@shramee shramee merged commit 9015007 into shramee:main Oct 19, 2023
1 check passed
@shramee
Copy link
Owner

shramee commented Oct 19, 2023

Thanks for pushing for this @chachaleo
And thanks for the great review @enitrat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exercises on dicts
3 participants