|Subject:||Added distinct() support for Iterator|
This is not a problem, but a first attempt at a new feature. I've included a patch with an added method distinct('methodname') to Iterator. The purpose is to return an Iterator or Array of all the items that are distinct from the original Iterator. Example: my $it = My::Class->search(foo => 'bar'); $it->count(); # lets say it returns 80 my $distinct_iterator = $it->distinct('myfoo'); $distinct_iterator->count(); # now returns 35 It is not very efficient as it will create the objects to run the methods, but it does get the job done. Hope its useful.
Message body not shown because it is not plain text.