<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fits</author_name>
  <author_url>https://blog.hatena.ne.jp/fits/</author_url>
  <blog_title>なんとなくな Developer のメモ</blog_title>
  <blog_url>https://fits.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Groovy</anon>
    <anon>Python</anon>
  </categories>
  <description>リストをなるべく均等に N 分割する処理を Groovy・Java・Python で実装してみました。 今回は、[0, 1, 2, 3, 4, 5, 6, 7] を 3分割した結果が [[0, 1, 2], [3, 4, 5], [6, 7]] となるような処理を想定しています。 （余り分を先頭から順に1つずつ分配） ソースは http://github.com/fits/try_samples/tree/master/blog/20151109/ Groovy の場合 Groovy 2.4.5 畳み込みを使って実装してみました。 (1) サブリストとして取り出す範囲を算出 (2) 取り出した…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffits.hatenablog.com%2Fentry%2F2015%2F11%2F09%2F211012&quot; title=&quot; リストをN個に分割 - Groovy, Java, Python - なんとなくな Developer のメモ&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>2015-11-09 21:10:12</published>
  <title> リストをN個に分割 - Groovy, Java, Python</title>
  <type>rich</type>
  <url>https://fits.hatenablog.com/entry/2015/11/09/211012</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
