"I must say that it felt great to solve a problem within several minutes (albeit it was not that hard), since I’m only at the beginning of my journey with #Clojure."
https://savo.rocks/posts/a-random-job-interview-challenge-in-clojure/
@nihilipster and a slightly shorter version using juxt :)
(defn chop-chop [s] (map (juxt (comp str first) count) (partition-by identity s)))
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.
@nihilipster and a slightly shorter version using juxt :)
(defn chop-chop [s]
(map
(juxt (comp str first) count)
(partition-by identity s)))