<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>imagawa_yakata</author_name>
  <author_url>https://blog.hatena.ne.jp/imagawa_yakata/</author_url>
  <blog_title>今川館</blog_title>
  <blog_url>https://imagawa.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>map_between をやってみる - Study08.net 対シンバシ殲滅用人型機動兵器 こういう記事があって、リストの隣接する要素を次々に処理する高階関数を作る話のようです。期待する挙動としては、こんな感じです。 &gt;&gt;&gt; map_between(lambda x, y: x + y, [1, 2, 3, 4, 5]) [3, 5, 7, 9]わたしも試しに書いてみました。 # -*- coding:utf-8 -*- import itertools # お手軽な方法だが、スライスしてしまう。 # スライシングに応答できるオブジェクトじゃないと動かない。 map_between1 = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fimagawa.hatenadiary.jp%2Fentry%2F20120104%2F1325703433&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>http://a3.twimg.com/profile_images/1726834335/TwitPenguin_dragon_normal.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-01-04 03:57:13</published>
  <title>リストの隣接要素を次々に処理する</title>
  <type>rich</type>
  <url>https://imagawa.hatenadiary.jp/entry/20120104/1325703433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
