<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>酢ろぐ！</blog_title>
  <blog_url>https://blog.ch3cooh.jp/</blog_url>
  <categories>
    <anon>iPhone</anon>
  </categories>
  <description>Swiftで配列の中から文字列長の長いオブジェクトを取得する方法を紹介します。 ここではString型の配列や特定のクラスのString型プロパティの配列から最も長い文字列を持つオブジェクトを取得します。判定の仕方を変更すれば文字列以外での判定をおこなうことも可能です。 スワローズの投手から適当にピックアップしてきました。後述する配列の中で一番名前が長いのは「金伏 ウーゴ」選手です。 String型の配列で最も長い文字列を取得する 文字数を取得するためにはcountメソッドを使います。String型の配列stringsのreduceメソッドを使います。reduceメソッドは与えられたシーケンス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ch3cooh.jp%2Fentry%2F20150505%2F1430789400&quot; title=&quot;Swiftでreduceメソッドを使って配列の中から文字列長の長いオブジェクトを取得する - 酢ろぐ！&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>http://f.st-hatena.com/images/fotolife/c/ch3cooh393/20150504/20150504120714.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-05 10:30:00</published>
  <title>Swiftでreduceメソッドを使って配列の中から文字列長の長いオブジェクトを取得する</title>
  <type>rich</type>
  <url>https://blog.ch3cooh.jp/entry/20150505/1430789400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
