{"categories":["Scala"],"author_url":"https://blog.hatena.ne.jp/tototoshi/","provider_url":"https://hatena.blog","blog_title":"tototoshi \u306e\u65e5\u8a18","published":"2011-11-10 23:04:09","provider_name":"Hatena Blog","version":"1.0","blog_url":"https://tototoshi.hatenablog.com/","title":"1 + 1 \u304c\u610f\u5916\u306b\u96e3\u3057\u3044","type":"rich","url":"https://tototoshi.hatenablog.com/entry/20111110/1320933849","author_name":"tototoshi","description":"\u300cDaimon.scala \u7b2c21\u56de \uff08Scala School \u659c\u3081\u8aad\u307f1\uff09\u300d : ATND\u3067\u306e\u4e00\u5e55 1 + 1 = 2 \u3067\u3059\u306d\u3002 scala> 1 + 1 res0: Int = 2 \u3068\u3053\u308d\u3067\u3001Scala \u3067\u306f\u6f14\u7b97\u5b50\u306f\u5b9f\u306f\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002 A method B \u306f A.method(B) \u3067\u3059\u3002 \u306a\u306e\u3067 1 + 1 \u306f 1.+(1) \u3068\u66f8\u3051\u308b\u306f\u305a\u3002 scala> 1.+(1) res1: Double = 2.0 \u3042\u308c\u3001\u3055\u3063\u304d\u3068\u7d50\u679c\u304c\u9055\u3046... \u7406\u7531 1.+(1) \u304c \u300c1 \u306e + \u3092\u547c\u3076\u300d\u306e\u3067\u306f\u306a\u304f\u300c1. \u306e + \u3092\u547c\u3076\u300d\u3068\u89e3\u91c8\u3055\u308c\u308b\u307f\u305f\u3044\u3002 scala> 1. res2: Double \u2026","height":"190","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftototoshi.hatenablog.com%2Fentry%2F20111110%2F1320933849\" title=\"1 + 1 \u304c\u610f\u5916\u306b\u96e3\u3057\u3044 - tototoshi \u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%"}