Instantly share code, notes, and snippets.

What would you like to do?
;; marius' solution to Compress a Sequence
#(map last (partition-by str %))

This comment has been minimized.

Copy link

mariussoutier commented Sep 13, 2011

If it weren't for the code golf, I'd change str to identity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment