<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rils_k</author_name>
  <author_url>https://blog.hatena.ne.jp/rils_k/</author_url>
  <blog_title>まだどこにもないアプリを作る</blog_title>
  <blog_url>https://rils-k.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>Xcode</anon>
  </categories>
  <description>swift配列から空の要素&quot;&quot;を削除します。 削除するというよりフィルターをかけています。 下記の配列は 1番目-空 2番目-a 3番目-空白 4番目-タブ になってます。 var arr: [String] = [&quot;&quot;,&quot;a&quot;,&quot; &quot;,&quot; &quot;] arr = arr.filter { !$0.isEmpty }//空の要素を削除 print(arr) 結果 [&quot;a&quot;, &quot; &quot;, &quot; &quot;] #Swift配列なにも入ってない要素を削除</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frils-k.hatenablog.com%2Fentry%2F2021%2F07%2F04%2F044203&quot; title=&quot;【swift】 配列から空の要素&amp;quot;&amp;quot;を削除 - まだどこにもないアプリを作る&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-07-04 04:42:03</published>
  <title>【swift】 配列から空の要素&quot;&quot;を削除</title>
  <type>rich</type>
  <url>https://rils-k.hatenablog.com/entry/2021/07/04/044203</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
