How can I create a list that contains character from A - Z? (Update: Sorry for asking stupid question XD, I found the solution)

Hi. How can I create a list like this: [‘A’, ‘B’, ‘C’, ‘D’, …, ‘X’, ‘Y’, ‘Z’]?

Solution:

List.map Char.fromCode (List.range 65 90)

Elm Slack is also a great place for quick questions.

3 Likes

Yep, you got it!

But since I see you edited your title… just so you know, it’s totally fine to ask this kind of question here, too!

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.