Netlogo 打印agentset中的元素

Netlogo 打印agentset中的元素,netlogo,agentset,Netlogo,Agentset,我想使用以下命令查找满足特定条件的修补程序: print patches with [ (closest-party = turtle 1) and (distance < 10)] 使用[(最近方=海龟1)和(距离

我想使用以下命令查找满足特定条件的修补程序:

print patches with [ (closest-party = turtle 1) and (distance < 10)]
使用[(最近方=海龟1)和(距离<10)]打印补丁
结果如下:(agentset,7个补丁)


我如何在该代理集中找到这7个补丁程序?如果
myset
是一个代理集,那么myset的
[self]将是一个代理列表

let myset patches with [ (closest-party = turtle 1) and (distance < 10)] print [self] of myset

非常感谢。感谢您的快速响应
ask myset [print self]