Set membership selector

A pull request for #323.