
{"id":7449,"date":"2012-07-16T18:31:04","date_gmt":"2012-07-16T18:31:04","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7449"},"modified":"2012-07-16T18:31:04","modified_gmt":"2012-07-16T18:31:04","slug":"example-working-with-scala-1-include-auto-completion","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/07\/16\/example-working-with-scala-1-include-auto-completion\/","title":{"rendered":"example working with scala 1 (include auto-completion)"},"content":{"rendered":"<h4><u>Get The Hang<\/u><\/h4>\n<pre>\n$ 4.2.29 2 502---&gt; scala\nWelcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24).\nType in expressions to have them evaluated.\nType :help for more information.\n\nscala&gt; 6\/3\nres0: Int = 2\n\nscala&gt; res0.\n%              &amp;              *              +              -              \/              &gt;\n&gt;=             &gt;&gt;             &gt;&gt;&gt;            ^              asInstanceOf   isInstanceOf   toByte\ntoChar         toDouble       toFloat        toInt          toLong         toShort        toString\nunary_+        unary_-        unary_~        |\n\nscala&gt; res0.*\n                           def *(x: Byte): Int        def *(x: Char): Int        def *(x: Double): Double\ndef *(x: Float): Float     def *(x: Int): Int         def *(x: Long): Long       def *(x: Short): Int\n\nscala&gt; res0.*\n:9: error: ambiguous reference to overloaded definition,\nboth method * in class Int of type (x: Char)Int\nand  method * in class Int of type (x: Short)Int\nmatch expected type ?\n              res0.*\n                   ^\n\nscala&gt; res0.to\ntoByte     toChar     toDouble   toFloat    toInt      toLong     toShort    toString\n\nscala&gt; res0.to\ntoByte     toChar     toDouble   toFloat    toInt      toLong     toShort    toString\n\nscala&gt; res0.toS\ntoShort    toString\n\nscala&gt; res0.toString\nres2: java.lang.String = 2\n\nscala&gt; res2*2\nres3: String = 22\n\nscala&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get The Hang $ 4.2.29 2 502&#8212;&gt; 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&gt; 6\/3 res0: Int = 2 scala&gt; res0. % &amp; * + &#8211; \/ &gt; &gt;= &gt;&gt; &gt;&gt;&gt; ^ asInstanceOf isInstanceOf toByte toChar toDouble &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/07\/16\/example-working-with-scala-1-include-auto-completion\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;example working with scala 1 (include auto-completion)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7449"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=7449"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7449\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}