Prefer enumeration to loops