{"author_name":"yuheiomori0718","published":"2014-04-06 23:16:56","type":"rich","provider_name":"Hatena Blog","blog_url":"https://y0m0r.hateblo.jp/","width":"100%","description":"\u95a2\u9023 : python2\u3067\u30ea\u30b9\u30c8\u3092n\u500b\u305a\u3064\u306e\u30b5\u30d6\u30ea\u30b9\u30c8\u306b\u5206\u5272\u3059\u308b - brainstorm package main import \"fmt\" func Chunks(l []int, n int) chan []int { ch := make(chan []int) go func() { for i := 0; i < len(l); i += n { from_idx := i to_idx := i + n if to_idx > len(l) { to_idx = len(l) } ch <- l[from_idx:to_idx] } close(ch) }() return ch\u2026","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","image_url":null,"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20140406%2F1396793816\" title=\"Go\u8a00\u8a9e\u3067\u30b9\u30e9\u30a4\u30b9\u3092n\u500b\u305a\u3064\u306b\u5206\u5272\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://y0m0r.hateblo.jp/entry/20140406/1396793816","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","version":"1.0","categories":["golang"],"title":"Go\u8a00\u8a9e\u3067\u30b9\u30e9\u30a4\u30b9\u3092n\u500b\u305a\u3064\u306b\u5206\u5272\u3059\u308b"}