0
我有以下結構:訪問嵌套結構插槽
(defstruct track
size
env
startpos
endpositions)
(defstruct state
pos
vel
action
cost
track
other)
我有一個狀態,我試着去訪問endpositions(名單列表)
(setq coluna_final (nth 1 (nth 0 (state-track-endpositions st))))
,但我得到的錯誤:EVAL: undefined function STATE-TRACK-ENDPOSITIONS
我在做什麼錯?
您可能需要使用'car'或'first'取代'第n 0'和'cadr'或'秒',而不是'第n個1'。 – sds