Exercise: are we there yet

Are we there yet?

The filter can be used to return values from a collection that return true when applying a function. So to get all the odd values from a collection, you could use (filter odd? [1 2 3 4])

Write a function to use with filter that will remove the word "already" from the collection: ["are" "we" "already" "there" "yet"]

The function you write would take an argument that is a string from the collection As we want to remove "already" then we need to check if the string is not equals

()
Reveal answer...

results matching ""

    No results matching ""