Skip to content
Prev 177557 / 398502 Next

flip certain bits in vector

jim holtman wrote:
I'll have to look up the ifelse operator, looks like
the ternary operator used in C

b[p] = b[p]==0?1:0

Cool - thanks!

Esmail