Re: [sage-support] Functional Programming doubt

2010-07-23 Thread Mike Hansen
On Thu, Jul 22, 2010 at 10:04 PM, vasu tewari.v...@gmail.com wrote: I am iterating through all partitions p  of a fixed length k ( let's say using Partitions (size, length=k) ) and I have written a function which return true if the partition p has atleast one part repeated. I can use a for

[sage-support] Functional Programming doubt

2010-07-22 Thread vasu
Hi I am trying to use something like the filter() command, for this purpose mentioned below: I am iterating through all partitions p of a fixed length k ( let's say using Partitions (size, length=k) ) and I have written a function which return true if the partition p has atleast one part

Re: [sage-support] Functional Programming doubt

2010-07-22 Thread Dan Drake
On Thu, 22 Jul 2010 at 10:04PM -0700, vasu wrote: I am trying to use something like the filter() command, for this purpose mentioned below: I am iterating through all partitions p of a fixed length k ( let's say using Partitions (size, length=k) ) and I have written a function which return