rontolisp:plist-alist
(rontolisp:plist-alist plist)
Returns an association list holding the same keys and values as the property
list plist — the odd elements are keys, the even elements values — in the same
order. The inverse of rontolisp:alist-plist, and a
lightweight subset of alexandria:plist-alist, so a program can switch to
alexandria unchanged.
Unlike rontolisp:plist-hash-table there is no
hash table in between, so the order is the input's — deterministic on every
backend — and duplicate keys are kept rather than collapsed:
Backend support
Works on every backend and in every WASM mode (Preview 1 included): the function is written in rontolisp itself (part of the prelude) and is compiled into the program when used.