-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 append method to NEL #2416
add append method to NEL #2416
Conversation
Let's add a quick test for this? Doctest, maybe? :) |
Codecov Report
@@ Coverage Diff @@
## master #2416 +/- ##
==========================================
+ Coverage 94.88% 94.88% +<.01%
==========================================
Files 350 350
Lines 6258 6261 +3
Branches 284 278 -6
==========================================
+ Hits 5938 5941 +3
Misses 320 320
Continue to review full report at Codecov.
|
/** | ||
* Alias for append | ||
*/ | ||
def :+[AA >: A](a: AA): NonEmptyList[AA] = |
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.
this method should be final
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.
sure but I would prefer we do that in a separate PR as there is no final method in NEL yet
@LukaJCB good idea, done |
* add append method to NEL * add doctest for :+
No description provided.