I want to iterate over the alphabet like so:
foreach(char c in alphabet)
{
//do something with letter
}
Is an array of chars the best way to do this? (feels hacky)
Edit: The metric is "least typing to implement whilst still being readable and robust"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…