mirror of
https://github.com/rjNemo/exercism-elixir
synced 2026-06-06 02:16:48 +00:00
2.2 KiB
2.2 KiB
Hints
General
- Use the built-in (linked) list type.
1. Define a function to return an empty language list
- You need to define a named function with 0 arguments.
2. Define a function to add a language to the list
- You need to define a named function with 2 arguments. The first argument is a list of language string-literals. The second argument is a language string-literal.
- You can use list literal notation forms.
3. Define a function to remove a language from the list
- You need to define a named function with 1 argument. The first argument is a list of language string-literals.
- Elixir provides a function to return a list with the first item removed.
4. Define a function to return the first item in the list
- You need to define a named function with 1 argument. The first argument is a list of language string-literals.
- Elixir provides a function to get the first item from a list.
5. Define a function to return how many languages are in the list
- You need to define a named function with 1 argument. The first argument is a list of language string-literals.
- Elixir provides a function to count the length of a list.
6. Define a function to determine if the list is exciting
- You need to define a named function with 1 argument. The first argument is a list of language string-literals.
- Your function should return a boolean value indicating whether
"Elixir"is a member of the list. Elixir provides a function to test list membership.