exercism / clojure

Exercism exercises in Clojure.

Home Page:https://exercism.org/tracks/clojure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use of "list" vs. "vector" in Clojure Flatten Array exercise instructions

usefulmove opened this issue · comments

I found the instructions for the Clojure Flatten Array exercise confusing because of the terminology used. The instructions mention lists, yet the tests pass vectors to the user-defined function, which can mislead learners. These are different collections in Clojure. I propose the instructions be updated to clarify that vectors are provided.

Instructions

-Take a nested list and return a single flattened list with all values except nil/null.
+Take a nested vector and return a single flattened vector with all values except nil/null.

-The challenge is to write a function that accepts an arbitrarily-deep nested list-like structure and returns a flattened structure without any nil/null values.
+The challenge is to write a function that accepts an arbitrarily-deep nested vector and returns a flattened vector without any nil/null values.

For Example

input: [1,[2,3,null,4],[null],5]

output: [1,2,3,4,5]

I am happy to submit a pull request to update the instructions if it helps.

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.