title: How to iterate through enum type while skipping some values?
body: <p>The key part of my question is the skipping. I plan to use an enum type that has about 20 elements. I want to iterate through this set but need to skip an element or two each time. What to skip is known in advance. A comparable example is the enum type that consists of all letters of the alphabet, and when iterating, I want to skip all the vowels.</p>
  
  <p>How should I code the iteration in an elegant/efficient way? Should I make a separate set of elements consisting of vowels? I have no code to show because I am just thinking about the problem.</p>