{"blog_title":"A Memorandum","author_name":"Naotsugu","url":"https://blog1.mammb.com/entry/20090612/1244827024","blog_url":"https://blog1.mammb.com/","provider_name":"Hatena Blog","version":"1.0","title":"\u30b1\u30fc\u30b9\u30af\u30e9\u30b9","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20090612%2F1244827024\" title=\"\u30b1\u30fc\u30b9\u30af\u30e9\u30b9 - A Memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null,"width":"100%","published":"2009-06-12 02:17:04","height":"190","author_url":"https://blog.hatena.ne.jp/Naotsugu/","categories":["Scala"],"provider_url":"https://hatena.blog","description":"\u30b1\u30fc\u30b9\u30af\u30e9\u30b9\u306f\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u305f\u3081\u306e\u30af\u30e9\u30b9\u3067\u3059\u3002 class \u306e\u524d\u306b case \u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4ed8\u3051\u308b\u3068\u30b1\u30fc\u30b9\u30af\u30e9\u30b9\u306b\u306a\u308a\u307e\u3059\u3002 abstract class Expr case class Number(n: Int) extends Expr case class Sum(e1: Expr, e2: Expr) extends Expr \u30b1\u30fc\u30b9\u30af\u30e9\u30b9\u306b\u306f\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002 \u660e\u793a\u7684\u306bnew\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4ed8\u3051\u306a\u304f\u3066\u3082\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3067\u304d\u308b \u5f8c\u3067\u8ffd\u8a18\u3057\u307e\u3059\u30fb\u30fb abstract class Expr case class Number(n: Int) extends Expr case clas\u2026"}