{"author_url":"https://blog.hatena.ne.jp/faith_and_brave/","url":"https://faithandbrave.hateblo.jp/entry/20080617/1213693181","provider_url":"https://hatena.blog","type":"rich","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","height":"190","version":"1.0","title":" \u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5206\u89e3","author_name":"faith_and_brave","image_url":null,"categories":["Scala"],"published":"2008-06-17 17:59:41","description":"\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u3068\u304b\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001 Scala \u52c9\u5f37\u4f1a\u3067\u304a\u3082\u3057\u308d\u304b\u3063\u305f\u30cd\u30bf\u3092\u30e1\u30e2 Pair \u3092 _1 \u3068 _2 \u306b\u5206\u89e3 object Main { def main(args : Array[String]): Unit = { var p = new Pair(3, 4) val Pair(x, y) = p // p \u3092 x \u3068 y \u306b\u5206\u89e3\u3059\u308b println(x) // 3 println(y) // 4 } } Pair \u3092 _1 \u3068 _2 \u3068 \u5f0f\u306b\u5206\u89e3 object Main { def main(args : Array[String]): Unit = { var p\u2026","blog_url":"https://faithandbrave.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080617%2F1213693181\" title=\" \u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5206\u89e3 - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%"}