Is there a NOOP in Netlogo?

我与影子孤独终老i 提交于 2019-12-10 10:40:33

问题


I am looking for a way to do nothing in netlogo. In other programming lanagues this is known as a no op method. Is there a way that I could do this in netlogo?


回答1:


You can write a no-op procedure of your own pretty easily:

to no-op 
end

; usage
to go
  no-op
end

If you only want built-in primitives, display or clear-output might be candidates, depending on what you're using in your model.



来源:https://stackoverflow.com/questions/51082725/is-there-a-noop-in-netlogo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!