Mercurial > core / lisp/std/hash-table.lisp
changeset 698: |
96958d3eb5b0 |
parent: |
a0dfde3cb3c4
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
1 ;;; std/hash-table.lisp --- Standard Hash Tables 6 (in-package :std/hash-table) 8 (declaim (inline maphash-keys)) 9 (defun maphash-keys (function table) 10 "Like MAPHASH, but calls FUNCTION with each key in the hash table TABLE." 11 (maphash (lambda (k v) 16 (declaim (inline maphash-values)) 17 (defun maphash-values (function table) 18 "Like MAPHASH, but calls FUNCTION with each value in the hash table TABLE." 19 (maphash (lambda (k v) 24 (defun hash-table-keys (table) 25 "Returns a list containing the keys of hash table TABLE." 27 (maphash-keys (lambda (k) 32 (defun hash-table-values (table) 33 "Returns a list containing the values of hash table TABLE." 35 (maphash-values (lambda (v) 40 (defun hash-table-alist (table) 41 "Returns an association list containing the keys and values of hash table 44 (maphash (lambda (k v) 45 (push (cons k v) alist))