<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuukaix</author_name>
  <author_url>https://blog.hatena.ne.jp/kuukaix/</author_url>
  <blog_title>kuukaixの日記</blog_title>
  <blog_url>https://kuukaix.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>/* 型キャスト asを使って型の判定 */ // var things = Any[]() // error: value of type 'Any.Protocol' has no subscripts var things : [Any] = [] things.append(0) things.append(0.0) for thing in things { switch thing { case 0 as Int: print(&quot;zero as an Int&quot;) case 0 as Double: print(&quot;zero as a Double&quot;) default: // TOFI…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkuukaix.hatenablog.com%2Fentry%2F2021%2F02%2F27%2F072412&quot; title=&quot;asを使って型の判定 - kuukaixの日記&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>2021-02-27 07:24:12</published>
  <title>asを使って型の判定</title>
  <type>rich</type>
  <url>https://kuukaix.hatenablog.com/entry/2021/02/27/072412</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
