From: gabriele renzi Date: 2004-05-26T19:13:47+09:00 Subject: Re: [RCR] Numeric#of il Wed, 26 May 2004 18:55:38 +0900, Simon Strandgaard 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.