<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>jqfpy</anon>
  </categories>
  <description>github.com 集合演算を手軽にやりたかった。 以下のようなxs.jsonとys.jsonに対する集合演算をやってみたい。 $ echo '[1,2,3,4,5]' &gt; xs.json $ echo '[2,4,6,8,10]' &gt; ys.json 意外とコマンドライン引数に渡して、それに --slurp をつけてリストとして扱うというのが便利。 $ jqfpy --slurp 'L = get(); do_something(L[0], L[1])' &lt;file1&gt; &lt;file2&gt; これはgetでも大丈夫。 $ jqfpy --slurp 'do_something(get(&quot;0&quot;),…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2017%2F09%2F22%2F080258&quot; title=&quot;JSON間の集合演算で面倒くさくなったのでpythonに丸投げした。できた。良かった。 - podhmo&amp;#39;s 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>2017-09-22 08:15:41</published>
  <title>JSON間の集合演算で面倒くさくなったのでpythonに丸投げした。できた。良かった。</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2017/09/22/080258</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
