<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ariteku</author_name>
  <author_url>https://blog.hatena.ne.jp/ariteku/</author_url>
  <blog_title>ぶろぐ</blog_title>
  <blog_url>https://takuan.hateblo.jp/</blog_url>
  <categories>
    <anon>scala</anon>
  </categories>
  <description>[0,100,200] というListを受け取って、MySQLに0〜99, 100〜199のidを検索するクエリを組みたい。 forを回してid1, id2で受け取って処理するっていう感じかーというC言語脳で考えつつ、値をスライディングしていくんだねというところに注目してscalaのコレクション探したらslidingって関数があった。 scala&gt; List(1,2,3,4,5).sliding(2).foreach( x=&gt; println( s&quot;${x.head} : ${x.last}&quot; ) ) 1 : 2 2 : 3 3 : 4 4 : 5 こんなかんじっすよね scala&gt; List…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuan.hateblo.jp%2Fentry%2F20141113%2Fp1&quot; title=&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>2014-11-13 00:00:00</published>
  <title>ふつうのコトをふつうに</title>
  <type>rich</type>
  <url>https://takuan.hateblo.jp/entry/20141113/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
