Skip to content

Instantly share code, notes, and snippets.

@chase-lambert
Created December 2, 2024 21:54
Show Gist options
  • Save chase-lambert/6dd1d7b3a7602c3d55f65f267b33b1a5 to your computer and use it in GitHub Desktop.
Save chase-lambert/6dd1d7b3a7602c3d55f65f267b33b1a5 to your computer and use it in GitHub Desktop.
rendezvous with cassidoo challenge: 24.12.02
(ns roll-call
(:require [clojure.test :refer [deftest is]]))
(defn roll-call [names]
(->> names
(map reverse)
(map (partial apply str))
sort))
(deftest roll-call-test
(is (= (roll-call ["yzneT" "ydissaC" "enimA"])
["Amine" "Cassidy" "Tenzy"]))
(is (= (roll-call ["rennoD" "nexiV" "recnarP" "temoC" "neztilB" "recnaD" "dipuC" "rehsaD" "hploduR"])
["Blitzen" "Comet" "Cupid" "Dancer" "Dasher" "Donner" "Prancer" "Rudolph" "Vixen"]))
(is (= (roll-call ["A" "B" "C"])
["A" "B" "C"])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment