|Subject:||overloaded numeric types|
|Date:||Sun, 27 May 2012 09:48:29 +1000|
|To:||bug-Scalar-List-Utils [...] rt.cpan.org|
|From:||Kevin Ryde <user42 [...] zip.com.au>|
I'd be good if List::Util min() and max() compared their arguments using the normal perl "<" or ">" so that overloaded number types like Math::BigInt can have a min or max taken. Likewise sum() adding up numbers. Not sure if perl makes those operations available, as sv_ncmp() or whatever. If not it'd be good if it or ppport.h did since they'd probably be helpful in other places too.