NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
how about adding... (Score:1)
uniq() for returning unique values from a list
uniq_ordered() for returning unique values from a list in the order that they were first seen
stats() which will return max, min, ave, tot, count for a list
See http://www.perlmonks.org/?node_id=407834 for background.
Cheers
L~R
Re:how about adding... (Score:2)
avgis already getting dangerously close to statistical functionality. Not that this would be fundemantally wrong in a list-module, but then people might come and ask for functions to calculate the quadratic mean or geometric mean as well.As for
uniqanduniq_ordered, the first is no more computational work than the second from an XS point of view (as there are no hash-slices in C so one needs to loop anyway).uniqI could add.I am not convinced that
statsis so terribly useful.maxandminare already in