Skip to content

Instantly share code, notes, and snippets.

@okaminu
Created October 2, 2020 11:05
Show Gist options
  • Save okaminu/28a39836a3ca905709f795f8a0585571 to your computer and use it in GitHub Desktop.
Save okaminu/28a39836a3ca905709f795f8a0585571 to your computer and use it in GitHub Desktop.
class Numbers {
def greaterThan(a: Int, b: Int): Boolean = {
sys.env.get("ACTIVE_MUTATION") match {
case Some("0") =>
a >= b
case Some("1") =>
a < b
case Some("2") =>
a == b
case _ =>
a > b
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment