Netlogo 预期代理集错误

Netlogo expected agentset error

我正在尝试在 "active-turtle" 和一组其他海龟(当前存储在列表中)之间创建链接。

我想使用 create-links-with 函数,但无法在不出现错误的情况下使用:expected input to be an agent-set but got a list...
这是我的代码 ask active-turtle [create-links-with like-list]

我有一个可行的解决方案,但我觉得它很丑,所以我正在寻找更好的替代方案
foreach like-list [ask ? [create-link-with active-turtle]]

非常方便的 turtle-set 原语会将您的列表变成代理集!

ask active-turtle [ create-links-with turtle-set like-list ]