<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>repeatedly</author_name>
  <author_url>https://blog.hatena.ne.jp/repeatedly/</author_url>
  <blog_title>はてなかよっ！</blog_title>
  <blog_url>https://repeatedly.hatenadiary.org/</blog_url>
  <categories>
    <anon>D言語</anon>
  </categories>
  <description>D言語の最新である2.029から入ったtemplate function literalを使うと，templateのパラメタで使う場合においては，Rubyとかのように型を書かなくても引数に使うことが出来るのでいいなぁと思った(きっとコンパイル時の型推論のおかげ)．ということで，簡単なコールバックはリテラルで書いて，複雑なのは関数やネスト関数でやればいいやと思ったのだけど，普通にやるとコンパイルできなかったのでメモ． まとめ タプルの添え字にはリテラルを使う 重要なのはこれだけ．だけど，これに気付いてかつ使えるようにするのに，無駄に時間が掛かってしまった．これでもリテラルの返り値がnullの場合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frepeatedly.hatenadiary.org%2Fentry%2F20090427%2F1240771421&quot; title=&quot;タプルパラメタとtemplate function literal - はてなかよっ！&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>2009-04-27 03:43:41</published>
  <title>タプルパラメタとtemplate function literal</title>
  <type>rich</type>
  <url>https://repeatedly.hatenadiary.org/entry/20090427/1240771421</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
