There's more than one way to do things | |
PerlMonks |
Re^7: Algorithm for cancelling common factors between two lists of multiplicandsby tmoertel (Chaplain) |
on Aug 11, 2005 at 06:20 UTC ( [id://482854]=note: print w/replies, xml ) | Need Help?? |
The pattern (_:_) will not match an empty list [], so the first definition will match only when both input lists are non-empty. If one or both of the inputs are empty, the second definition will match.
Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
In Section
Seekers of Perl Wisdom
|
|