public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
scala> None == None
res3: Boolean = true
 
scala> None == 10
<console>:5: warning: comparing non-null values of types object None and Int using `==' will always yield false
None == 10
^
res4: Boolean = false
 
scala> None > 10
<console>:5: error: value > is not a member of object None
None > 10
^
 
scala> None < 10
<console>:5: error: value < is not a member of object None
None < 10
^
scala> 10 == 10
res7: Boolean = true

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.