From 171bef2d05aaf378874ffcd8d85caa914e5f7aaa Mon Sep 17 00:00:00 2001 From: Morgan Date: Sat, 4 Jul 2015 01:27:09 +0000 Subject: [PATCH] use syntax sugar for lambda #16 --- src/pronouns/util.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pronouns/util.clj b/src/pronouns/util.clj index 6a27c30..9a7d886 100644 --- a/src/pronouns/util.clj +++ b/src/pronouns/util.clj @@ -48,7 +48,7 @@ ([pronouns-table sections] (minimum-unambiguous-path pronouns-table sections 1)) ([pronouns-table sections number-of-sections] (let [sections-subset (take number-of-sections sections) - results (filter (fn [pronouns] (= (take number-of-sections pronouns) sections-subset)) pronouns-table)] + results (filter #(= (take number-of-sections %) sections-subset) pronouns-table)] (case (count results) 0 nil 1 (clojure.string/join "/" sections-subset)