News for hackers. Stuff that matters.
Re:LINQ Ruined My Favorite Interview Question by JeanPierre on Thursday July 11, 2013 @02:20PM (#6027992)
sort-by takes an optional comparator, so doing (comp - val) is a bit unneeded. Just add in > as an argument to sort-by:

  (->> (string/split s #"\s+")
       frequencies
       (sort-by val >)
       (take 10))
Just mentioning it here because I find it vastly more readable than (comp - val).

There are no comments on this comment yet.