
{"id":7453,"date":"2012-07-22T13:15:38","date_gmt":"2012-07-22T13:15:38","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7453"},"modified":"2012-07-22T13:15:38","modified_gmt":"2012-07-22T13:15:38","slug":"example-working-with-scala-2-declaring-values-and-variables","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/07\/22\/example-working-with-scala-2-declaring-values-and-variables\/","title":{"rendered":"example working with scala 2 (declaring values and variables)"},"content":{"rendered":"<h4><u>Get The Hang<\/u><\/h4>\n<pre>\n$ 4.2.29 1 501---&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; val stat = data + ticks\n:7: error: not found: value data\n       val stat = data + ticks\n                  ^\n\nscala&gt; val stat = data\n:7: error: not found: value data\n       val stat = data\n                  ^\n\nscala&gt; val stat =  1\nstat: Int = 1\n\nscala&gt; val plot  =  3\nplot: Int = 3\n\nscala&gt; val out  = data + plot\n:8: error: not found: value data\n       val out  = data + plot\n                  ^\n\nscala&gt; val out  = stat + plot\nout: Int = 4\n\nscala&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get The Hang $ 4.2.29 1 501&#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; val stat = data + ticks :7: error: not found: value data val stat = data + ticks ^ scala&gt; val stat = &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/07\/22\/example-working-with-scala-2-declaring-values-and-variables\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;example working with scala 2 (declaring values and variables)&#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\/7453"}],"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=7453"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7453\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}