Skip to content

Instantly share code, notes, and snippets.

@sudowork
Last active December 12, 2015 10:38
Show Gist options
  • Save sudowork/4760682 to your computer and use it in GitHub Desktop.
Save sudowork/4760682 to your computer and use it in GitHub Desktop.
scala> 1 + 1
res0: Int = 2
scala> (1).+(1)
res1: Int = 2
scala> 2 + 5 * 8
res2: Int = 42
scala> (2).+((5).*(8))
res3: Int = 42
scala> 42. // Tab complete
!= ## % & * + - / <
<< <= <init> == > >= >> >>> ^
asInstanceOf equals getClass hashCode isInstanceOf toByte toChar toDouble toFloat
toInt toLong toShort toString unary_+ unary_- unary_~ |
scala> "foo".size
res4: Int = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment