Skip to content

Instantly share code, notes, and snippets.

@martintrojer
Last active December 16, 2015 22:29
Show Gist options
  • Save martintrojer/5507774 to your computer and use it in GitHub Desktop.
Save martintrojer/5507774 to your computer and use it in GitHub Desktop.
col-size
(defn size [o]
(-> o pr-str count))
(defn col-size [c]
(let [s (if (map? c) (seq c) (map-indexed vector c))]
(->> s
(map (fn [[k v]] [k (size v)]))
(sort-by second)
reverse)))
(defn third [col]
(-> col next next first))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment