Skip to content

Instantly share code, notes, and snippets.

@hiroya
Created May 26, 2017 08:31
Show Gist options
  • Save hiroya/6479168995cbcfdf9bc646c2c4ff1728 to your computer and use it in GitHub Desktop.
Save hiroya/6479168995cbcfdf9bc646c2c4ff1728 to your computer and use it in GitHub Desktop.
What's X?
case class Integer(integer: Int) {
X =>
def add(X1: Integer): Integer = Integer(X.integer + X1.integer)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment