Sha256: a0b728c2d0b1952978d235e7ed09483a48ae4af76cd1e8d26a4214f3f8b74f32
Contents?: true
Size: 258 Bytes
Versions: 396
Compression:
Stored size: 258 Bytes
Contents
(ns anagram (:require [clojure.string :refer [lower-case]])) (defn- anagram? [w c] (let [w (lower-case w) c (lower-case c)] (and (= (sort w) (sort c)) (not= w c)))) (defn anagrams-for [w coll] (filter (partial anagram? w) coll))
Version data entries
396 entries across 396 versions & 1 rubygems