-----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 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 (presumably) quadratic. > > it's the exact same syntax for Python (starting with version 2.4) >
Thanks. I haven't done much with Python since the 2.3 days. Um, actually, it looks like it's more like: list( set(set1) & set(set2) ) But, anyway, back to PD now. :-) Time for me to try to get RRAD running and play with it some. - -ken -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG8DbWe8HF+6xeOIcRAr8oAJ9KPNYYWgY1u4dq/yoQzmT72TjWEQCg+wNy KHFwR9v5ywkQi7sGe+1QhEg= =0eQx -----END PGP SIGNATURE----- _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list