Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Created July 23, 2015 20:02
Show Gist options
  • Save Jacoby6000/c6e25f2c7b261812ed45 to your computer and use it in GitHub Desktop.
Save Jacoby6000/c6e25f2c7b261812ed45 to your computer and use it in GitHub Desktop.
case class Foo(value: Int)
def somethingThatDependsOnFoo(someInt: Int): Foo => Int = (foo: Foo) => someInt*foo.value
val myFooFunction: Foo => Int = somethingThatDependsOnFoo(5)
val myFooFunctionResult: Int = myFooFunction(Foo(5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment