Responses for exercises in Exercism.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

900 B

Hints

1. Create an empty list

Creating an empty list is just like creating a list with items. It can be done using list or using quote on an empty list.

2. Add a new language to the list

Clojure has a core function that can prepend an item to a list.

3. Check the language last added

Like other Lisps, Clojure has a function that returns the first item from a list.

4. Remove the first language from the list

Likewise, Clojure also has a function for returning a list with the first item removed.

5. Count the languages in the list

The number of items in a list can easily be returned using a Clojure core function.

6. Put it all together

Remember that function calls can be nested.