## Compare lists as condition

Nov 10 2014 | 9:52 pm

Hi,

I've got 2 lists, both are the same length (18 numbers). I need a function where the value in the left list is passed if the value of the same position in the right list is 1. So the right list only consists of zero's and ones.

continuously changing left list compare list
100 50 99 17.... 0 0 1 1...

This should be let through
0 0 99 17...

This happens about every 30ms in possibly 30 parallel streams, so this should be a fast function. I wandered through the magnificent Lobject library but I could not find a solution.

Any of you a fast working idea?

Thanks, Frans-Jan