<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aryzae</author_name>
  <author_url>https://blog.hatena.ne.jp/aryzae/</author_url>
  <blog_title>面白きことは良きことなり</blog_title>
  <blog_url>https://aryzae.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift2.0</anon>
    <anon>Swift3.0</anon>
    <anon>備忘録</anon>
  </categories>
  <description>Swiftで色々便利になったり、融通が効きやすくなったけど、 個々の状況では不便だな〜とか、こういうメソッドあったらいいのに〜と 思うことも多々ある。そんな時はextensionして使い勝手良くしてしまえばいい。 現場で教えて貰ったextensionで便利だなーと思ったのがあったので書いておく。&quot;find&quot;は、filterで条件絞って、その中から先頭を抜き出すのに少し手間がかかるので、 条件に合った先頭を最初から返すようにしたもの。 // Swift2 extension SequenceType { func find(@noescape predicate: (Self.Generator…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faryzae.hatenablog.com%2Fentry%2F2016%2F09%2F30%2F210000&quot; title=&quot;あると便利なextension&amp;quot;find&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>2016-09-30 21:00:00</published>
  <title>あると便利なextension&quot;find&quot;</title>
  <type>rich</type>
  <url>https://aryzae.hatenablog.com/entry/2016/09/30/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
