use pushnew instead of adjoin

This commit is contained in:
Helmut Merz 2026-04-30 09:15:23 +02:00
parent b863763e9b
commit 205f96d917

View file

@ -34,8 +34,7 @@
(setf (gethash key (actions *environment*)) fn))
(defun add-sensor (key sn)
(let ((sns (sensors *environment*)))
(setf (gethash key sns) (adjoin sn (gethash key sns)))))
(pushnew sn (gethash key (sensors *environment*))))
;;;; neurons (= behavior factories) and synapses (connection factories)