gabriele renzi <surrender_it / rc1.vip.ukl.yahoo.com> wrote: > <neoneye / adslhome.dk> ha scritto:: > > > >Maybe it would be a good idea to extend all Numeric classes > >with a null_element. ala traits > > > >p 9.null_element # -> 0 > >p Complex(123, 456).null_element # -> 42 > > > >when one does "x.map{|y| y.z}" then map makes a range between > >the null_element and x. > > well, I'd just prefer to see it working like times((). > I mean, walk in a range 1..n, just for integers. But it's my opinion. Times walks the range 0..(n-1) :-) It was just a silly idea.. I have plenty of weird ideas today (its my birthday). Just ask if you want more silly ideas (only today ;-) -- Simon Strandgaard