Skip to content

Instantly share code, notes, and snippets.

@non
Created April 27, 2015 22:18
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 non/2ca8da3bf9229a986faa to your computer and use it in GitHub Desktop.
Save non/2ca8da3bf9229a986faa to your computer and use it in GitHub Desktop.
package object foo {
implicit class ThrowAway(val x: Boolean) extends AnyVal {
def func[B]: B => String =
new Function1[B, String] {
def apply(b: B): String = "foo"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment