<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tofucodes</author_name>
  <author_url>https://blog.hatena.ne.jp/tofucodes/</author_url>
  <blog_title>tofucodes diary</blog_title>
  <blog_url>https://tofucodes.hatenablog.jp/</blog_url>
  <categories>
    <anon>swift</anon>
    <anon>pattern</anon>
  </categories>
  <description>何かしらのデータのリストから特定の期間のデータのみをフィルタしたいような時があると思います。 今回のサンプルはデータのリストから6月に作成されたデータをフィルタします。 おそらくよくありがちなコードはこんな感じではないでしょうか。 （コードはだいぶデフォルメしてます） let dataList: [SomeData] = ... // 2018/06/01 00:00:00 &lt;= x &lt;= 2018/06/30 23:59:59 let filtered = dataList.filter { Date(&quot;2018-06-01 00:00:00&quot;) &lt;= $0.createdAt &amp;&amp; $0.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftofucodes.hatenablog.jp%2Fentry%2F2018%2F06%2F14%2F235952&quot; title=&quot;指定期間のデータを抽出するアンチパターンについて - tofucodes diary&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>2018-06-14 23:59:52</published>
  <title>指定期間のデータを抽出するアンチパターンについて</title>
  <type>rich</type>
  <url>https://tofucodes.hatenablog.jp/entry/2018/06/14/235952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
