Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 13 utilities.

alist-to-hash-table v1.0

Create a hash table populated with kv-pairs.

Provides
alist-to-hash-table
Source Code
 
hash-table-key-exists-p v1.0

Does key exist in hash-table?

Provides
hash-table-key-exists-p
Source Code
 
dohash v1.0

Iterate over the hash table table, executing body, with key and value bound to the keys and values of the hash table respectively. Return result from the iteration form.

Provides
dohash
Source Code
 
copy-hash-table v1.0

Returns a copy of hash table table, with the same keys and values as the table. The copy has the same properties as the original, unless overridden by the keyword arguments.

Before each of the original values is set into the new hash-table, key is invoked on the value. As key defaults to cl:identity, a shallow copy is returned by default.

Provides
copy-hash-table
Source Code
 
maphash-keys v1.0

Like maphash, but calls function with each key in the hash table table.

Provides
maphash-keys
Source Code
 
maphash-values v1.0

Like maphash, but calls function with each value in the hash table table.

Provides
maphash-values
Source Code
 
hash-table-keys v1.0

Returns a list containing the keys of hash table table.

Provides
hash-table-keys
Requires
maphash-keys
Source Code
 
hash-table-values v1.0

Returns a list containing the values of hash table table.

Provides
hash-table-values
Requires
maphash-values
Source Code
 
hash-table-alist v1.0

Returns an association list containing the keys and values of hash table table.

Provides
hash-table-alist
Source Code
 
hash-table-plist v1.0

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

Provides
hash-table-plist
Source Code
 
alist-hash-table v1.0

Returns a hash table containing the keys and values of the association list alist. Hash table is initialized using the hash-table-initargs.

Provides
alist-hash-table
Source Code
 
plist-hash-table v1.0

Returns a hash table containing the keys and values of the property list plist. Hash table is initialized using the hash-table-initargs.

Provides
plist-hash-table
Source Code
 
ensure-gethash v1.0

Like gethash, but if key is not found in the hash-table saves the default under key before returning it. Secondary return value is true if key was already in the table.

Provides
ensure-gethash
Source Code