Created
July 23, 2015 20:02
-
-
Save Jacoby6000/c6e25f2c7b261812ed45 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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