2 Nov 2005 03:29
Re: specification of sum
John Meacham <john <at> repetae.net>
2005-11-02 02:29:45 GMT
2005-11-02 02:29:45 GMT
The solution would be to bring 'sum' and 'product' into the Num class so
the most efficient version for each type can be used and the default is
no worse than the current non-class versions. (this is even pretty much
completly backwards compatable so could be considered for haskell 06)
I'd also like to see 'join' and 'ap' added to Monad while we are at it.
John
--
--
John Meacham - ⑆repetae.net⑆john⑈
RSS Feed