Skip to content

Instantly share code, notes, and snippets.

@dougbeal
Created September 26, 2018 19:02
Show Gist options
  • Save dougbeal/1b3b76685d52b6fea6357b635fa96829 to your computer and use it in GitHub Desktop.
Save dougbeal/1b3b76685d52b6fea6357b635fa96829 to your computer and use it in GitHub Desktop.
sort and remove duplicate items for merging emacs package list when tracked in git
(print (sort (remove-duplicates (append
(quote
(a1 a2 b1 b2 b3))
(quote (a1 a2 a3 b2 b5)))) #'string<))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment