Re: [PD] simple message/list parsing

2007-10-05 Thread Mathieu Bouchard
On Tue, 18 Sep 2007, Ken Restivo wrote: On Tue, Sep 18, 2007 at 10:22:25PM +0200, Thomas Grill wrote: Install the ruby external, and make a simple external that does this? set1 set2 and does it all in linear time too, instead of (presumably) quadratic. it's the exact same syntax for

Re: [PD] simple message/list parsing

2007-09-18 Thread Ken Restivo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Sep 16, 2007 at 05:20:34PM +1000, Mat Wall-Smith wrote: Hi.. I'm still looking for a way of checking one list of numbers against another list of numbers and returning the any number that is included in both. Something like the

Re: [PD] simple message/list parsing

2007-09-18 Thread Mathieu Bouchard
On Tue, 18 Sep 2007, Ken Restivo wrote: Install the python external, and make a simple extraction that does this? [ x for x in set1 if x in set2 ] Install the ruby external, and make a simple external that does this? set1 set2 and does it all in linear time too, instead of

Re: [PD] simple message/list parsing

2007-09-18 Thread Thomas Grill
Am 18.09.2007 um 21:34 schrieb Mathieu Bouchard: On Tue, 18 Sep 2007, Ken Restivo wrote: Install the python external, and make a simple extraction that does this? [ x for x in set1 if x in set2 ] Install the ruby external, and make a simple external that does this? set1

Re: [PD] simple message/list parsing

2007-09-18 Thread Ken Restivo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Sep 18, 2007 at 10:22:25PM +0200, Thomas Grill wrote: Am 18.09.2007 um 21:34 schrieb Mathieu Bouchard: On Tue, 18 Sep 2007, Ken Restivo wrote: Install the python external, and make a simple extraction that does this? [ x for

[PD] simple message/list parsing

2007-09-16 Thread Mat Wall-Smith
Hi.. I'm still looking for a way of checking one list of numbers against another list of numbers and returning the any number that is included in both. Something like the [select] object but that passes the number rather than a bang so I could add the number to a text file or list.

Re: [PD] simple message/list parsing

2007-09-16 Thread Batuhan Bozkurt
Mat Wall-Smith wrote: Hi.. I'm still looking for a way of checking one list of numbers against another list of numbers and returning the any number that is included in both. Something like the [select] object but that passes the number rather than a bang so I could add the number to a

Re: [PD] simple message/list parsing

2007-09-16 Thread Roman Haefeli
On Sun, 2007-09-16 at 17:20 +1000, Mat Wall-Smith wrote: Hi.. I'm still looking for a way of checking one list of numbers against another list of numbers and returning the any number that is included in both. Something like the [select] object but that passes the number rather than a

Re: [PD] simple message/list parsing

2007-09-16 Thread Frank Barknecht
Hallo, Mat Wall-Smith hat gesagt: // Mat Wall-Smith wrote: I'm still looking for a way of checking one list of numbers against another list of numbers and returning the any number that is included in both. Like the attached example? Requires objects in the the list-abs collection. Ciao

Re: [PD] simple message/list parsing

2007-09-16 Thread Owen Cannon
list-sieve2.pd Description: Binary data requires list-absright-inlet: cold inlet for second listleft-inlet: accepts messages 'unique' (common elements cancel out) or 'common' (common elements), then listoutputs a listOn Sep 16, 2007, at 12:20 AM, Mat Wall-Smith wrote:Hi..I'm still looking for a

Re: [PD] simple message/list parsing

2007-09-16 Thread Owen Cannon
(my mistake, right left inlets are 'cold' for both lists to be compared. list-sieve2.pd outputs when left-inlet recieves messages 'unique' or 'common' ) requires list-abs right-inlet: cold inlet for second list left-inlet: accepts messages 'unique' (common elements cancel out) or 'common'