I want to construct the array ['a', 'b', 'c', 'd', ..., 'z'] in a clean way. The best I have found is
'a b c d e f g h i j k l m n o p q r s t u v w x y z'.split(' ');
I wonder if there is a more “programmatic” approach.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, this can be shortened a bit to:
But let me think of another way …
EDIT … nope, I don’t think there’s a faster way than Guffa’s