-
Notifications
You must be signed in to change notification settings - Fork 98
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
remove Discrete typeclass in favor of one of the cats Enumerable typeclasses #315
Comments
Have taken a bit of a look at this today as part of the LSUG day, and it turned out to be a bit bigger than I expected! I think the correct approach is to remove (Aside: there's a missing
[1] It would arguably be more general to allow |
Some more colour on test("contain items within [start, end] (invert)"){
val range = Range(100, 1)
scala.Range(1, 100).foreach(i => range.contains(i) should be (true))
} It would be logical, I think - but it would probably require some internal re-engineering of |
I personally believe that a As for Would that be alright with you? |
In that case, would you be happy for me to remove the logic to run in reverse from
Okay, I'll raise a ticket there and see what the feedback is :) |
Uh, nothing is ever simple 😅 Let's keep it as it is, then. I wonder though why the test fails, then. |
@ashleymercer Since #358 cats-collection depends on Cats 2.4.0, so the missing instance is available. |
see:
https://github.com/typelevel/cats/blob/master/kernel/src/main/scala/cats/kernel/Enumerable.scala
I don't know the minimal thing we are using, maybe Previous and Next or PartialPrevious and PartialNext would be enough.
It would be nice to remove Discrete and standardize on the cats versions.
The text was updated successfully, but these errors were encountered: