Hi,
On 1 September 2011 05:13, Chris Smith <[email protected]> wrote:
> I didn't look into it. I now see:
>
> >>> Tuple(1,2,3,4,2).count(lambda i:i==2)
> 2
>
> It should probable work when receiving a simple count(2), however. I
> suspect it's because rec_find doesn't register {} (not None) as a hit.
The issue is that .count() is based on .find() and the later method doesn't
allow query to be an expressions (it can be a pattern or a lambda). .find()
can be extended to support this.
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
>
Mateusz
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.