
{"id":7455,"date":"2012-07-25T17:53:13","date_gmt":"2012-07-25T17:53:13","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7455"},"modified":"2012-07-25T17:53:13","modified_gmt":"2012-07-25T17:53:13","slug":"example-working-with-scala-3","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/07\/25\/example-working-with-scala-3\/","title":{"rendered":"example working with scala 3"},"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; va a, b = 10\n:1: error: ';' expected but ',' found.\n       va a, b = 10\n           ^\n\nscala&gt; val a, b = 10\na: Int = 10\nb: Int = 10\n\nscala&gt; a*b\nres0: Int = 100\n\nscala&gt; val a, b :String = hello\n:7: error: not found: value hello\n       val a, b :String = hello\n                          ^\n\nscala&gt; var a, b :String = hello\n:7: error: not found: value hello\n       var a, b :String = hello\n                          ^\n\nscala&gt; var a, b :String = \"hello\"\na: String = hello\nb: String = hello\n\nscala&gt; echo a\n:8: error: not found: value echo\n              echo a\n              ^\n\nscala&gt;  a\nres2: String = hello\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; va a, b = 10 :1: error: &#8216;;&#8217; expected but &#8216;,&#8217; found. va a, b = 10 ^ scala&gt; val a, b = &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/07\/25\/example-working-with-scala-3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;example working with scala 3&#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\/7455"}],"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=7455"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7455\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}