Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created July 1, 2013 04:12
Show Gist options
  • Save chris-martin/5898299 to your computer and use it in GitHub Desktop.
Save chris-martin/5898299 to your computer and use it in GitHub Desktop.
implicit class RichAny[A](x: A) {
def K(f: A => Unit): A = { f(x); x }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment