Package: alexandria

Function hash-table-plist

Lambda List

hash-table-plist (table)

Arguments

table -- a hash table

Return Value

a property list

Details

Generates a property list from a hash table.

Returns a property list containing the keys and values of the hash table table.

Examples

(defvar table (make-hash-table)) => TABLE
(setf (gethash 'Germany table) 'Berlin) => BERLIN
(setf (gethash 'France table) 'Paris) => PARIS
(setf (gethash 'Britain table) 'London) => LONDON
(hash-table-plist table)
 => (FRANCE PARIS BRITAIN LONDON GERMANY BERLIN)    
 

See also