Skip to content

Instantly share code, notes, and snippets.

@ashee
Created July 9, 2010 17:07
Show Gist options
  • Select an option

  • Save ashee/469719 to your computer and use it in GitHub Desktop.

Select an option

Save ashee/469719 to your computer and use it in GitHub Desktop.
def subtract(i: Int, j: Int): Int = {
require(i > 4 && j > 4)
(i - j).ensuring(_ > 4)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment