Let's ground those bit operations with a concrete example. Suppose you have elements labeled . The mask in decimal equals in binary.
Reading right to left: bit is (element included), bit is (element excluded), bit is (element included), bit is (element included).
So mask represents the subset . Check if element is in the subset: . Yes, it's included. Check element : . Not included. These operations become automatic with practice.