[set ops] polish code and use std::find_if (suggestions by Adam);