<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-hiyama</author_name>
  <author_url>https://blog.hatena.ne.jp/m-hiyama/</author_url>
  <blog_title>檜山正幸のキマイラ飼育記 (はてなBlog)</blog_title>
  <blog_url>https://m-hiyama.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記／備忘</anon>
  </categories>
  <description>例えば、配列 [0, 2, 4, 6, 8] に対して、0 + 2 + 4 + 6 + 8 を計算するようなJavaScript関数： function total(a) { var tot = 0; for (var i = 0; i &lt; a.length; i++) { tot += a[i]; } return tot; } &gt; total([0, 2, 4, 6, 8]) 20 次のようなTypeScriptクラスを考えます。 // 自然数型をうまく定義できないので、ナンチャッテ定義 // naturalはintegerで0以上 type natural = number; class…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama.hatenablog.com%2Fentry%2F20150408%2F1428466876&quot; title=&quot;TypeScriptジェネリックス：可能性が見えると不満がつのる - 檜山正幸のキマイラ飼育記 (はてなBlog)&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>2015-04-08 13:21:16</published>
  <title>TypeScriptジェネリックス：可能性が見えると不満がつのる</title>
  <type>rich</type>
  <url>https://m-hiyama.hatenablog.com/entry/20150408/1428466876</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
