-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add Reduce
operation
#139
Add Reduce
operation
#139
Conversation
ca6c295
to
173f6ce
Compare
b3ce099
to
0993829
Compare
f5e5706
to
afed0de
Compare
@AlexandruGG Do you think the static analysis stuff is good enough? |
bc3e1fc
to
a7cbb83
Compare
7b673a6
to
56ffc34
Compare
e7c651e
to
09119ff
Compare
I'm going to create separate PR's, it's too messy in here :) this PR was only supposed for adding the |
652d7d2
to
dfd764d
Compare
Yes please 🙌 |
Everything's done already ! |
dfd764d
to
e744778
Compare
d7142f0
to
2d111f7
Compare
Oops, looks like you added back all the commits I removed yesterday :S (see #153) |
2d111f7
to
670f52f
Compare
Yeah I just noticed, I had your branch already locally 😓 |
Sorry, can you fix it? There's only one commit I added (other than the master merge) |
Ok going to fix it. |
670f52f
to
847f611
Compare
847f611
to
34fa160
Compare
Job done. To get it locally:
|
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.
Looks great 🎉
For the static analysis tests I always try to add some "failing" to ensure that the constraints we set work and make sense.
In this case the main constraint is that if the user doesn't provide an initial value then the default null
will be used, which means the callback needs to be able to accept null
as the carry 😁 .
Also when the initial value is provided then the collection will not contain null
if the callback doesn't return null
This PR:
Reduce