Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Forked from chirino/gist:2036034
Created March 14, 2012 12:05
Show Gist options
  • Save jstrachan/2036040 to your computer and use it in GitHub Desktop.
Save jstrachan/2036040 to your computer and use it in GitHub Desktop.
Tuple3 {
inline def forEach(fn: Function<Any?,Unit>):Unit = {
fn.invoke(this._1)
fn.invoke(this._2)
fn.invoke(this._3)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment