Re: Add basic arithmetic to Math

2012-06-12 Thread Nadav Shesek
On Jun 11, 2012 6:18 PM, "Allen Wirfs-Brock" wrote: > > > On Jun 10, 2012, at 11:48 AM, Angus Croll wrote: > >> Rationale: >> >> Some functional JavaScript idioms are hamstrung by the lack of native basic arithmetic functions. >> Would be handy/elegant/instructive to be able to write >> >> arr.red

Re: Add basic arithmetic to Math

2012-06-11 Thread Allen Wirfs-Brock
On Jun 10, 2012, at 11:48 AM, Angus Croll wrote: > Rationale: > > Some functional JavaScript idioms are hamstrung by the lack of native basic > arithmetic functions. > Would be handy/elegant/instructive to be able to write > > arr.reduce(Math.add); > > Moreover having functional versions of