-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Provide Seq(..).maxOption and friends #6574
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
Conversation
|
Just signed the cla. Please validate again. :) |
|
a8858ba to
1da2c3b
Compare
|
Oh my, thanks Seth. Funny I dont get that when I run from idea. Anyway fixed and updated. |
|
|
||
| @Test | ||
| def checkNonEmptyOption: Unit = { | ||
| assert(Seq(1).maxOption == Some(1), "maxOption on a Empty Iterable has option") |
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.
on a Empty Iterable ?
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.
Opps, sorry thanks, fixed.
1da2c3b to
a1c43dc
Compare
szeiger
left a comment
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 like a useful addition to me.
|
thanks @stephennancekivell! this is now your little patch of land in the Scala standard library :-) |
|
haha, thanks @SethTisue |
Provide
Seq(..).maxOptionand friends so developers can easily write code that handles the empty case.