From: daz Date: 2004-04-12T14:44:15+09:00 Subject: Re: proposal - zip to do padding Simon Strandgaard wrote: > > It would be awesome if #zip could do the same > with non-nil elements.. (this is what I propose) > > p (4..6).zip('a', 'b') > #=> [[4, "a", "b"], [5, "a", "b"], [6, "a", "b"]] > p (4..6).map {|n| [n, 'a', 'b']} #=> [[4, "a", "b"], [5, "a", "b"], [6, "a", "b"]] Consider: Is there a better tool for the job before looking for YetAnotherRCR. daz