{"image_url":null,"author_url":"https://blog.hatena.ne.jp/deve68/","width":"100%","provider_url":"https://hatena.blog","type":"rich","title":" \u6700\u9577\u91cd\u8907\u6587\u5b57\u5217\u554f\u984c in Scala","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdeve68.hatenadiary.org%2Fentry%2F20120511%2F1336755406\" title=\" \u6700\u9577\u91cd\u8907\u6587\u5b57\u5217\u554f\u984c in Scala - \u30b3\u30fc\u30c9\u306e\u6075\u307f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"deve68","version":"1.0","blog_title":"\u30b3\u30fc\u30c9\u306e\u6075\u307f","published":"2012-05-11 01:56:46","categories":[".groovy",".scala"],"url":"https://deve68.hatenadiary.org/entry/20120511/1336755406","description":"Clojure \u7de8\u306b\u3064\u3065\u304d Scala \u7de8\u3078 Scala \u306f Haskell \u306e\u591a\u304f\u306e\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067 Haskell \u304b\u3089\u306e\u66f8\u304d\u63db\u3048\u308b\u306e\u306b\u306f\u6709\u5229\u3060\u3002 def makePair [T](xs: Seq[Seq[T]]) = xs zip xs.tail def comlen [T](p: (Seq[T],Seq[T])) = p.zipped takeWhile(x => x._1 == x._2) size def lenstr [T](p: (Seq[T],Seq[T])) = (comlen(p), p._1) def calcLen [T](xs: Seq[(Seq[T],Se\u2026","blog_url":"https://deve68.hatenadiary.org/","height":"190"}