<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sfujisak</author_name>
  <author_url>https://blog.hatena.ne.jp/sfujisak/</author_url>
  <blog_title>Shoken Startup Blog</blog_title>
  <blog_url>https://shoken.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>iOS</anon>
  </categories>
  <description>Swiftではfuncでメソッドを定義する。 funcの引数に出てくるアンダースコアやシャープはExternal Parameter Namesという。 これはメソッドの引数をラベル化する場合に使う。Rubyのキーワード引数と似ている。 Swiftでは第二引数以降はラベルを付けて呼び出す必要がある func join(s1: String, s2: String, joiner: String) -&gt; String { return s1 + joiner + s2 } join(&quot;hello&quot;, &quot;world&quot;, &quot;:&quot;) // =&gt; コンパイルエラー join(&quot;hello&quot;, s2: &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshoken.hatenablog.com%2Fentry%2F2014%2F06%2F18%2F151548&quot; title=&quot;Swiftのfuncの引数に出てくるアンダースコアやシャープの意味について調べた - Shoken Startup 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>2014-06-18 15:15:48</published>
  <title>Swiftのfuncの引数に出てくるアンダースコアやシャープの意味について調べた</title>
  <type>rich</type>
  <url>https://shoken.hatenablog.com/entry/2014/06/18/151548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
