Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mariussoutier/1213873 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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