Anyone tried Elixir Quiz?

Hi all!, anybody tried this Elixir quiz from @Tetiana? She’s the one who made Elixircards.

5 Likes

Nice find Jaeyson - I haven’t tried it yet but it looks great! I’ve bookmarked it and set a reminder for next month :003:

If you do it let us know how you get on :023:

2 Likes

list_to_atom(“Erlang”)

I learned that I need to use :erlang. to find that function. But when I used it like this
:erlang.list_to_atom(“Erlang”

It gave me an argument error while the answer in the flashcard was ‘Erlang’.

How so?

4 Likes

Thank you for the suggestion. Will look into this.

3 Likes

Because that function takes a list (in the flashcard example, a charlist) as an argument, not a String, thus to call it from Elixir, it must be called as :erlang.list_to_atom('Erlang') (with single-quotes, rather than double-quotes).

4 Likes

Thank you for clarifying that.

4 Likes