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

add append method to NEL #2416

Merged
merged 2 commits into from
Aug 16, 2018
Merged

Conversation

julien-truffaut
Copy link
Contributor

No description provided.

@LukaJCB
Copy link
Member

LukaJCB commented Aug 16, 2018

Let's add a quick test for this? Doctest, maybe? :)

@LukaJCB LukaJCB added this to the 1.3 milestone Aug 16, 2018
@codecov-io
Copy link

codecov-io commented Aug 16, 2018

Codecov Report

Merging #2416 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
core/src/main/scala/cats/data/NonEmptyList.scala 100% <100%> (ø) ⬆️
core/src/main/scala/cats/data/OptionT.scala 96.51% <0%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b3d3b9...097f798. Read the comment docs.

/**
* Alias for append
*/
def :+[AA >: A](a: AA): NonEmptyList[AA] =

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

Copy link
Contributor Author

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

@julien-truffaut
Copy link
Contributor Author

@LukaJCB good idea, done

@LukaJCB LukaJCB merged commit d4db711 into typelevel:master Aug 16, 2018
catostrophe pushed a commit to catostrophe/cats that referenced this pull request Sep 15, 2018
* add append method to NEL

* add doctest for :+
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.

5 participants