;;; HASH TABLES 1: BASICS (solution) (defun people () (let ((table (make-hash-table))) (setf (gethash 'ada table) 36 (gethash 'grace table) 45) table)) (defun age-of (name table) (gethash name table)) ;;; ------------------------------------------------------------------ ;;; Checks. Read them - they tell you what to aim for - but leave ;;; them unchanged. ;;; ------------------------------------------------------------------ (check (let ((table (people))) (and (eql 36 (age-of 'ada table)) (eql 45 (age-of 'grace table)) (eq nil (age-of 'alan table)))))