{"title":"Scala\u306ePartialFunction\u304c\u4fbf\u5229\u3067\u3059\u3088","blog_url":"https://yuroyoro.hatenablog.com/","url":"https://yuroyoro.hatenablog.com/entry/20100705/1278328898","width":"100%","categories":["scala"],"image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuroyoro.hatenablog.com%2Fentry%2F20100705%2F1278328898\" title=\"Scala\u306ePartialFunction\u304c\u4fbf\u5229\u3067\u3059\u3088 - ( \ua4aa\u2313\ua4aa) \u3086\u308b\u3088\u308d\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>","published":"2010-07-05 20:21:38","type":"rich","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/yuroyoro/","height":"190","description":"Scala\u306b\u306f\u3001PartialFunction\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002 \u76f4\u8a33\u3059\u308b\u3068\u90e8\u5206\u95a2\u6570\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u306a\u306b\u304b\u3063\u3066\u3044\u3046\u3068\u300c\u7279\u5b9a\u306e\u5f15\u6570\u306b\u5bfe\u3057\u3066\u306f\u7d50\u679c\u3092\u8fd4\u3059\u3051\u3069\u3001\u7d50\u679c\u3092\u8fd4\u305b\u306a\u3044\u5f15\u6570\u3082\u3042\u308b\u3088\u3046\u306a\u4e2d\u9014\u534a\u7aef\u306a\u95a2\u6570\u300d\u3067\u3059\u3002 \u3069\u3046\u3084\u3063\u3066\u4f7f\u3046\u306e\u3093? \u307e\u3041\u3001\u3061\u3087\u3063\u3068\u4f8b\u3092\u898b\u3066\u307e\u3057\u3087\u3046\u3084\u3002PartialFunction\u3067\u3042\u308bfooPf\u306f\u3001\u5f15\u6570\u304c\"foo\"\u3060\u3063\u305f\u3089\"bar\"\u3092\u8fd4\u3057\u3066\u3001\"foo\"\u4ee5\u5916\u306f\u77e5\u3089\u3093\u3068\u3044\u3046\u3066\u304d\u3068\u30fc\u306a\u95a2\u6570\u3067\u3059\u3002 scala> val fooPf:PartialFunction[String,String] = { case \"foo\" => \"bar\" } fooPf: PartialFunctio\u2026","provider_name":"Hatena Blog","blog_title":"( \ua4aa\u2313\ua4aa) \u3086\u308b\u3088\u308d\u65e5\u8a18","author_name":"yuroyoro"}