apiwrap.el icon indicating copy to clipboard operation
apiwrap.el copied to clipboard

Rewrite apiwrap-plist->alist with cl-loop to get list keywords in the same order

Open snogge opened this issue 7 years ago • 2 comments

I no longer remember why I needed this, but it should make the function less surprising to use.

snogge avatar Aug 21 '18 08:08 snogge

Thanks! It would indeed make it less surprising to use. Why not simply use reverse, though?

Also, my apologies for the incredibly long delay on this. Needless to say, life's gotten in the way.

vermiculus avatar Dec 29 '19 17:12 vermiculus

I don't remember to be honest. Probably just felt it was neater and easier to read. But it should have been nreverse either way, no need to copy the elements.

As another point in favor of the PR, if you have a plist with duplicate keys, looking up a key in the plist and the alist will yield different results in the old version.

snogge avatar Dec 29 '19 22:12 snogge