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 ifF on Functor #3040 #3058

Merged
merged 2 commits into from
Oct 18, 2019
Merged

Conversation

vasiliybondarenko
Copy link
Contributor

Added ifF function to Functor:

def ifF[A](fb: F[Boolean])(ifTrue: A, ifFalse: A): F[A] = map(fb)(x => if (x) ifTrue else ifFalse)

@codecov-io
Copy link

codecov-io commented Sep 12, 2019

Codecov Report

Merging #3058 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3058      +/-   ##
==========================================
- Coverage   93.52%   93.51%   -0.02%     
==========================================
  Files         368      368              
  Lines        6998     6999       +1     
  Branches      198      188      -10     
==========================================
  Hits         6545     6545              
- Misses        453      454       +1
Impacted Files Coverage Δ
core/src/main/scala/cats/Functor.scala 100% <100%> (ø) ⬆️
core/src/main/scala/cats/data/NonEmptyList.scala 98.66% <0%> (-0.67%) ⬇️

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 dc44c3b...23345ee. Read the comment docs.

build.sbt Outdated Show resolved Hide resolved
@kubukoz kubukoz mentioned this pull request Oct 7, 2019
@kailuowang kailuowang merged commit a5c44b4 into typelevel:master Oct 18, 2019
@travisbrown travisbrown added this to the 2.1.0-RC1 milestone Nov 6, 2019
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