我收到错误消息:
MEMBER? expected input to be a string or list or agentset but got the number 0 instead.
在运行以下 NetLogo 代码期间:
to find-flockmates ;; turtle reporter
;; latch on to the nearby birds
set flockmates-infront other birds in-cone vision cone-infront-degree
set flockmates-sidewise other birds in-cone vision cone-sidewise-degree
;; agentset substraction
if (count flockmates-infront > 0)[
set flockmates-sidewise (flockmates-sidewise with [not member? self flockmates-infront])
]
end
有人可以告诉我我做错了什么或另一个可能的减法两个代理集的解决方案吗?