Skip to content

Instantly share code, notes, and snippets.

@bigjason
Created March 24, 2014 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigjason/9733752 to your computer and use it in GitHub Desktop.
Save bigjason/9733752 to your computer and use it in GitHub Desktop.
implicit class Function1Pimps[-T1](fn: Function1[T1, Boolean]) {
def complement: Function1[T1, Boolean] = (param: T1) => !fn(param)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment