小编cyb*_*nzy的帖子

为什么冒号位于Common Lisp中的变量之前

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)

syntax common-lisp colon

16
推荐指数
2
解决办法
5828
查看次数

标签 统计

colon ×1

common-lisp ×1

syntax ×1