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#toNes (issue #2346) #2557

Merged
merged 6 commits into from
Oct 24, 2018

Conversation

CucumisSativus
Copy link
Contributor

The last missing pull request for #2346

@He-Pin
Copy link

He-Pin commented Oct 14, 2018

Why.not toSet or toNonEmptySet

@kun-song
Copy link
Contributor

@hepin1989 Beacuse there are already some codes where toNes refers to toNonEmptySet. In fact, this is confusing sometimes, beacuse it can be interperted as toNonEmptyStream too.

@CucumisSativus
Copy link
Contributor Author

@hepin1989 Everything that @satansk + the fact I wanted to be consistent with the rest of naming from this issue where I implemented NonEmptyMap#toNel and NonEmptyList#toNem. I think that .toSet might because it does not mention that this set should be non empty.

If you guys think that this naming is misleading, i'm not really attached to it.

@codecov-io
Copy link

codecov-io commented Oct 23, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2557      +/-   ##
==========================================
+ Coverage   95.14%   95.14%   +<.01%     
==========================================
  Files         361      361              
  Lines        6630     6634       +4     
  Branches      289      294       +5     
==========================================
+ Hits         6308     6312       +4     
  Misses        322      322
Impacted Files Coverage Δ
core/src/main/scala/cats/data/NonEmptyList.scala 100% <100%> (ø) ⬆️
core/src/main/scala/cats/data/EitherT.scala 97.9% <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 9069dbb...636f6f6. Read the comment docs.

@CucumisSativus
Copy link
Contributor Author

Sorry for the mess in commits, screwed a bit with merging and then everything escalated quickly.

@CucumisSativus
Copy link
Contributor Author

The build failed because of Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000000078ce4e000, 857415680, 0) failed; error='Cannot allocate memory' (errno=12). Could someone restart it?

@kailuowang kailuowang merged commit 8620303 into typelevel:master Oct 24, 2018
@kailuowang kailuowang added this to the 1.5 milestone Oct 30, 2018
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.

6 participants