<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Elixir</anon>
    <anon>めも</anon>
  </categories>
  <description>Erlang/Elixir はバイナリのパースが得意ということで。 ローマ数字で書かれた数をパースする関数を書いてみました。 defmodule RomanNumerals do @moduledoc &quot;&quot;&quot; Documentation for RomanNumerals. &quot;&quot;&quot; def parse(roman) when is_binary(roman), do: parse(roman, 0) defp parse(&quot;&quot;, sum), do: sum defp parse(&lt;&lt;&quot;M&quot;, rest::binary&gt;&gt;, sum), do: parse(rest, sum + 1000) d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F2019%2F07%2F31%2F200551&quot; title=&quot;ローマ数字を Elixir でパースする - エンジニアのソフトウェア的愛情&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>https://images-fe.ssl-images-amazon.com/images/I/41PB8TPS98L._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-31 20:05:51</published>
  <title>ローマ数字を Elixir でパースする</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/2019/07/31/200551</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
