Common Lisp中变量前面的冒号是什么意思?我已经看过这样的程序,我将在这里提供一些示例代码,这些代码来自一大堆函数.
(defun expand (successorf node)
(mapcar (lambda (action-state-cost)
(let ((action (car action-state-cost))
(state (cadr action-state-cost))
(cost (caddr action-state-cost)))
(make-node :state state :parent node
:action action :path-cost (+ (node-path-cost node) cost)
:depth (1+ (node-depth node)))
))
(funcall successorf (node-state node))
))
Run Code Online (Sandbox Code Playgroud)