use pushnew instead of adjoin
This commit is contained in:
parent
b863763e9b
commit
205f96d917
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue