We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using enableIf to simplify code for compat purpose
Version: latest
Use enableIf to switch Scala code at compile-time.
import com.thoughtworks.enableIf @enableIf(scala.util.Properties.versionNumberString.startsWith("2.10.")) implicit class FlatMapForTailRec[A](underlying: TailRec[A]) { final def flatMap[B](f: A => TailRec[B]): TailRec[B] = { tailcall(f(underlying.result)) } }
https://github.com/ThoughtWorksInc/enableIf.scala#step-2-create-an-implicit-class-for-scala-210
The text was updated successfully, but these errors were encountered:
Thanks. It looks good. I'll have a look at it later.
Sorry, something went wrong.
kevin-lee
No branches or pull requests
Task
Summary
Using enableIf to simplify code for compat purpose
Project Details
Version: latest
Description
Use enableIf to switch Scala code at compile-time.
https://github.com/ThoughtWorksInc/enableIf.scala#step-2-create-an-implicit-class-for-scala-210
The text was updated successfully, but these errors were encountered: