Programming challenge: wildcard exclusion in cartesian products

Dan Piponi google03 at sigfpe.com
Fri Mar 17 10:34:56 EST 2006


wkehowski at cox.net said:
> I haven't run or studied your program yet myself but what I had in mind
> was that the list of wc's are *all* to be excluded

I think it already does what you want. You might want to change

run n alphabet pat =
        generate terminal null transition [pat] n alphabet to

to

run n alphabet pat =
        generate terminal null transition pat n alphabet

to allow lists of patterns where the patterns in a list are ORed
together.




More information about the Python-list mailing list