example working with scala 4 ( Commonly Used Types )

commandline session

$ 4.2.29 1 2---> scala
Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24).
Type in expressions to have them evaluated.
Type :help for more information.

scala> 1.toString
res0: java.lang.String = 1

scala> 33.to(40).toString
res1: String = Range(33, 34, 35, 36, 37, 38, 39, 40)

scala> Jeffrin.intersect(Jose)
:8: error: not found: value Jeffrin
              Jeffrin.intersect(Jose)
              ^

scala> "Jeffrin".intersect("Jose")
res3: String = Je

scala>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s