Filtering one list out of another
Mark Schonewille
m.schonewille at economy-x-talk.com
Mon Dec 23 18:08:37 EST 2013
Hi Devin,
Filter, intersect and union won't work for this. I have never understood
why there isn't something like a negative intersect, e.g. an exclude
command.
I think you will have to use repeat for each.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 12/23/2013 23:57, Devin Asay wrote:
> Hello LiveCode savants,
>
> I'm pretty sure this can be done, but I've puzzled over this for a while and my brain asplode.
>
> I have two lists of integers:
>
> A B
> -- --
> 1 2
> 2 5
> 3 7
> 4 8
> 5
> 6
> 7
> 8
> 9
> 10
>
> I want to get only the lines in list A that are not in list B:
>
> Result desired:
> --------------------
> 1
> 3
> 4
> 6
> 9
> 10
>
> Will filter work for this? I already tried, without much hope of success, 'filter A without B'. As expected, no go.
>
> Any ideas?
>
> Devin
More information about the use-livecode
mailing list