tweak example by thread a bit more. (#379)

it's a taste thing, probably, dismiss if it conflicts with yours ;-)
This commit is contained in:
Marten Sytema 2020-04-24 13:24:27 +02:00 committed by GitHub
parent 3ae3abf2e6
commit 2fef8a793e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,9 @@
([lines]
(chats-by-user lines parse-line))
([lines keep-fn]
(->> (frequencies (keep keep-fn lines))
(->> lines
(keep keep-fn)
frequencies
(sort-by second >)
(map (fn [[name amount]]
{:name name