<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>ワンライナーっぽく出来た。 Prelude&gt; let addComma numStr = concat $ snd $ foldr (\x t -&gt;(fst t + 1,(if fst t `mod` 3 == 0 &amp;&amp; fst t /= 0 then (x++&quot;,&quot;) else x):snd t)) (0,[]) [[x]|x &lt;-numStr] Prelude&gt; addComma &quot;1234&quot; &quot;1,234&quot; Prelude&gt; addComma &quot;123&quot; &quot;123&quot; Prelude&gt; addComma &quot;1234567890123&quot; &quot;1,234,567,890,123&quot; こっちの方が短…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100401%2F1270086243&quot; title=&quot;数字文字列にカンマを入れる - sirocco の書いてもすぐに忘れるメモ&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>2010-04-01 10:44:03</published>
  <title>数字文字列にカンマを入れる</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20100401/1270086243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
