Created
May 14, 2014 16:19
-
-
Save erikerlandson/3a2a8a5012cb9af66769 to your computer and use it in GitHub Desktop.
bad functions
This file contains 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
scala> val f1 = (x:Int, t:Int) => (x > t) | |
f1: (Int, Int) => Boolean = <function2> | |
scala> f1 | |
res22: (Int, Int) => Boolean = <function2> | |
scala> val f2 = (x:Int, t:Int=7) => (x > t) | |
<console>:1: error: ')' expected but '=' found. | |
val f2 = (x:Int, t:Int=7) => (x > t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment