<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ooharak</author_name>
  <author_url>https://blog.hatena.ne.jp/ooharak/</author_url>
  <blog_title>ooharakの日記</blog_title>
  <blog_url>https://ooharak.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>勉強</anon>
  </categories>
  <description>1..3999の数字をローマ数字に変換する。 あとでググってみたら、ワンライナーとかすごそうなのが色々あったけど、自分としては今の実装で充分読みやすいと思った。Maybeを使って範囲外はNothingにしたりしてみたけど、このあたり空気は読めてない。 パターンマッチングは粗々こんな感じだろうけど、むしろモナドがでてくるここからがヤマなのだろう。 8/14追記：最初roman n の n mod 10|100|1000が0になるケースのパターンを網羅してなかった。実はそのことは知ってたんだけど、問題ないと思ってたら、roman 1900とかでエラーになったのでrecurなる関数を導入してきちんと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fooharak.hatenadiary.org%2Fentry%2F20120813%2F1344865835&quot; title=&quot;ローマ数字を求める - ooharakの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-08-13 22:50:35</published>
  <title>ローマ数字を求める</title>
  <type>rich</type>
  <url>https://ooharak.hatenadiary.org/entry/20120813/1344865835</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
