From: "NARUSE, Yui" Date: 2009-05-10T12:53:00+09:00 Subject: [ruby-dev:38414] Re: Enumerable#gather_each 成瀬です。 Tanaka Akira wrote: > In article , > Yukihiro Matsumoto writes: > >> だけだと情報があまりにもないので手元のシソーラスでgatherを引 >> いたところ、 >> >> accumulate, aggregate, amass, assemble, associate, bunch up, >> capture, choose, close with, cluster, collect, concentrate, >> congregate, convence, converge, corral, crowd, cull, draw, >> draw in, flock, forgather, gang up, garner, get together, >> group, hang around, hang out, heap, herd, hoard, huddle, ake >> the scene, marshal, mass, meet, muster, pick, pile up, >> pluck, poke, pour in, punch, rally, reunite, round up, scare >> up, scrape together, show up, stack up, stockpile, swarm, >> throng, unite >> >> とありました。明らかに違うだろうとか、別の意味で使ってるとか >> いうものもありますが、参考までに。 > > この中だと、accumulate, aggregate, pour, unite あたりはどう > ですかね。 その4つだとaggregateが好みかなぁ。 まぁ、gatherの用法を見ていると大雑把な語のようにも見えるので、 わたしはgatherでもいいかなぁと思い始めてもいます。 http://dic.yahoo.co.jp/dsearch?enc=UTF-8&p=gather&dtype=1 辞書を操ると、「同種の物をまとめる」風の意味のbunchとsheafとかありますね。 http://dic.yahoo.co.jp/dsearch?enc=UTF-8&p=bunch&dtype=1 http://dic.yahoo.co.jp/dsearch?enc=UTF-8&p=sheaf&dtype=1 全体でなく適当に束にする感じ > 他には each_slice から語を借用して slice もしくは slice_by > はどうでしょうか? 直前で切るーだとslice_beforeとかの方がしっくり来るんですが、 田中さんのgatherをsliceなんちゃらにしてしまうと違う感じですね。 -- NARUSE, Yui