Re: are API definitions implementation details?

2000-08-09 Thread Nick Ing-Simmons
David L . Nicol [EMAIL PROTECTED] writes: Dan Sugalski wrote: On Tue, 8 Aug 2000, Nick Ing-Simmons wrote: this list is _only_ concerned with implementation details. Well, assuming you consider API definitions implementation details. :) Dan I

Re: RFC 76 (v1) Builtin: reduce

2000-08-09 Thread Damian Conway
While we are here, can reduce itself generate an average? I.e. something cuter than: $avg = reduce { $_[0] + $_[1] } @numbers / @numbers; Of course. This is about as cute as it gets: $ave = ${reduce( bless( \(((ref(^x)?$^x*ref(^x):^x)+^y)/((ref(^x)||1)+1)),