I think it would be better design wise if the lambda were entered in the Wild 
itself, so instead use something like:

w = Wild('w', lambda=lambda i: i.is_Whatever and <some other stuff maybe>)

It also gives more flexibility this way, because you can have just a part of 
the match expression use the lambda.

Aaron Meurer

On Sep 21, 2010, at 8:14 PM, smichr wrote:

> Another way of handling the lambda functionality would be to piggy
> back off of match so that eq.match(lambda) would return True if the
> lambda was true for eq. That way routines would gain matching and
> lambda capabilities at the same time. Or, like for .has(), routines
> already having wild matching would gain lambda matching.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to