projects
/
frak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d05da4
)
Don't use `char?`
author
Joel Holdbrooks
<cjholdbrooks@gmail.com>
Sat, 17 Aug 2013 16:55:32 +0000
(09:55 -0700)
committer
Joel Holdbrooks
<cjholdbrooks@gmail.com>
Sat, 17 Aug 2013 21:54:10 +0000
(14:54 -0700)
src/clj/frak.clj
patch
|
blob
|
blame
|
history
diff --git
a/src/clj/frak.clj
b/src/clj/frak.clj
index 8de473ebb716c130b5b54de91edbaac741dc4232..1cb683ff7cd251c316dc62a38e59a52782455dbd 100644
(file)
--- a/
src/clj/frak.clj
+++ b/
src/clj/frak.clj
@@
-67,8
+67,8
@@
(defn- render-trie [trie]
(let [{vs :visitors ts :terminals} trie
terminal? (set ts)
- ks (->> (
keys trie
)
- (
filter char?
)
+ ks (->> (
dissoc trie :visitors :terminals
)
+ (
keys
)
(sort-by (frequencies vs))
reverse)
nks (if-let [cs (seq (filter #(nil? (trie %)) ks))]