Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariussoutier/1213873 to your computer and use it in GitHub Desktop.
Save mariussoutier/1213873 to your computer and use it in GitHub Desktop.
;; marius' solution to Compress a Sequence
;; https://4clojure.com/problem/30
#(map last (partition-by str %))
@mariussoutier
Copy link
Author

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