<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>かんたんコーディング</anon>
  </categories>
  <description>「パスカルの三角形」というのはこういうやつですね。 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 この出力を目標に、Haskell で書いてみます。以前に Ruby で書いてみました。そのコードを再掲しましょう。 pascal = -&gt;(n) { each_cons = -&gt;(ar) { (ar.size &lt; 2) ? [] : [ar[0] + ar[1]] + each_cons[ar.drop(1)] } n.zero? ? [1] : [1] + each_cons[pa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2018%2F04%2F06%2F081623&quot; title=&quot;パスカルの三角形（Haskell） - Camera Obscura&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/51P6NdS4IGL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-06 08:16:23</published>
  <title>パスカルの三角形（Haskell）</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2018/04/06/081623</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
