We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Description states to copy template and fill blank:
(fn[n]___________________________)
But prepared caller part of solution is (hello_word_n_times n) and is not editable. It will not compile if one copies template and fills blanks. Temlate must be
(defn hello_word_n_times [n]___________________________)
or
(def hello_word_n_times (fn[n]___________________________)).
BTW, there's also a misspelling in calling part that cannot be edited: word instead of wor**l**d.
I'm starting to suspect, that guys from Hackerrank do not really like Clojurists) Another surprise waiting Hackerrank student on his way of learning FP in Clojure is when his tested and submitted solution will fail with compile error. That's most likely because of version mismatch. Described environment is Clojure 1.9 and that is what anyone expects, but in reality it is ancient Clojure 1.6.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hello World N Times
You are viewing a single comment's thread. Return to all comments →
Bad problem description for Clojure.
Description states to copy template and fill blank:
(fn[n]___________________________)
But prepared caller part of solution is
(hello_word_n_times n)
and is not editable. It will not compile if one copies template and fills blanks. Temlate must be(defn hello_word_n_times [n]___________________________)
or(def hello_word_n_times (fn[n]___________________________))
.BTW, there's also a misspelling in calling part that cannot be edited: word instead of wor**l**d.
I'm starting to suspect, that guys from Hackerrank do not really like Clojurists) Another surprise waiting Hackerrank student on his way of learning FP in Clojure is when his tested and submitted solution will fail with compile error. That's most likely because of version mismatch. Described environment is Clojure 1.9 and that is what anyone expects, but in reality it is ancient Clojure 1.6.