about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMorgan <m@morganastra.me>2015-07-04 01:27:09 +0000
committerMorgan <m@morganastra.me>2015-07-04 01:27:09 +0000
commit171bef2d05aaf378874ffcd8d85caa914e5f7aaa (patch)
tree759268fb792fe309f321f8f2b1540644d513d6cf /src
parent9ee90b036f3c6dc8417af1e5e36aed6ff04ef918 (diff)
use syntax sugar for lambda #16
Diffstat (limited to 'src')
-rw-r--r--src/pronouns/util.clj2
1 files changed, 1 insertions, 1 deletions
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)