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 NonEmptyList.ofInitLast #1910

Merged
merged 1 commit into from
Sep 13, 2017
Merged

Conversation

eddsteel
Copy link
Contributor

I mentioned this on gitter (thanks @edmundnoble for the name suggestion). I needed to build a NEL from an init list and a last element, and didn't like using unsafeFromList. Not sure if it's generally useful but seems pretty natural given List's init and last operations.

No worries if you think it's out of scope and don't want to include it.

@codecov-io
Copy link

codecov-io commented Sep 13, 2017

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1910      +/-   ##
==========================================
+ Coverage   95.54%   95.54%   +<.01%     
==========================================
  Files         248      248              
  Lines        4418     4420       +2     
  Branches      126      124       -2     
==========================================
+ Hits         4221     4223       +2     
  Misses        197      197
Impacted Files Coverage Δ
core/src/main/scala/cats/data/NonEmptyList.scala 100% <100%> (ø) ⬆️

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 eff36ef...c59a9b2. Read the comment docs.

@johnynek
Copy link
Contributor

👍

@kailuowang kailuowang merged commit ca0204c into typelevel:master Sep 13, 2017
@kailuowang kailuowang added this to the 1.0.0-RC1 milestone Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants