Skip to content

Instantly share code, notes, and snippets.

@wontheone1
Created January 1, 2017 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wontheone1/a22818c9d39390ac2c40c1309ef48fb9 to your computer and use it in GitHub Desktop.
Save wontheone1/a22818c9d39390ac2c40c1309ef48fb9 to your computer and use it in GitHub Desktop.
(defn rot [string]
(for [index (range (count string))]
(->> (reverse (split-at index string))
(apply concat)
(apply str))))
(defn contain-all-rots [strng vec-str]
(every? (set vec-str) (rot strng)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment