Skip to content

Instantly share code, notes, and snippets.

@claj
Forked from anonymous/claj-4clojure-solution77.clj
Created February 2, 2012 22:03
Show Gist options
  • Save claj/1726069 to your computer and use it in GitHub Desktop.
Save claj/1726069 to your computer and use it in GitHub Desktop.
;; claj's solution to Anagram Finder
;; https://4clojure.com/problem/77
(fn [a]
(set
(map set
(filter #(< 1 (count %))
(vals
(group-by
(fn [b] (reduce conj #{} b))
a))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment