-
Notifications
You must be signed in to change notification settings - Fork 598
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
feat(corelib): Iterator::product #7156
feat(corelib): Iterator::product #7156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @MagisterDaIlis)
a discussion (no related file):
@gilbens-starkware for 2nd eye.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @MagisterDaIlis)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @MagisterDaIlis)
corelib/src/test/iter_test.cairo
line 78 at r1 (raw file):
assert_eq!((0_usize..=0).into_iter().product(), 1); assert_eq!((0_usize..=1).into_iter().product(), 1); assert_eq!((0_usize..=5).into_iter().product(), 120);
Suggestion:
assert_eq!((1_usize..=0).into_iter().product(), 1);
assert_eq!((1_usize..=1).into_iter().product(), 1);
assert_eq!((1_usize..=5).into_iter().product(), 120);
3ed7fe9
to
6946e25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 5 files reviewed, 1 unresolved discussion (waiting on @gilbens-starkware and @orizi)
corelib/src/test/iter_test.cairo
line 78 at r1 (raw file):
assert_eq!((0_usize..=0).into_iter().product(), 1); assert_eq!((0_usize..=1).into_iter().product(), 1); assert_eq!((0_usize..=5).into_iter().product(), 120);
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @MagisterDaIlis)
will rebase on Iterator::sum once merged