Skip Menu |

This queue is for tickets about the Math-Factor CPAN distribution.

Report information
The Basics
Id: 11628
Status: resolved
Priority: 0/
Queue: Math-Factor

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: interface improvement
It should be simpler to get the factors of a single number. This seems like a more common need, and multiple factors could be defined in terms of it. @factors = factors(9); %factors = map { $_ => factors($_) } qw(9 10 11 12);
I'm sorry it took such a long time, but finally the changes made it in 0.29. 0.29 2005/09/21 - As suggested by RJBS <rjbs@cpan.org>, factors() takes a single number and returns now a flat array of factors. matches() likewise.