X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Fnvm%2Fnvm.lisp;h=ecbcfd9f492c0854e9626ebe264da05ca064fc87;hp=482498c9a1d403029ae9da83cea5f6fb2da86355;hb=f00d5c7c0e0b18f334da14c2e4107a7f1f68b45f;hpb=82888b4c12ff462e539e9e7746d5268f9c46f330 diff --git a/src/main/nvm/nvm.lisp b/src/main/nvm/nvm.lisp index 482498c..ecbcfd9 100644 --- a/src/main/nvm/nvm.lisp +++ b/src/main/nvm/nvm.lisp @@ -85,6 +85,23 @@ DESCRIPTION: (setf (turtle-who *self*) -1) (setf *turtles* (remove *self* *turtles*))) +(defun patches () + "PATCHES => ALL-PATCHES + +ARGUMENTS AND VALUES: + + ALL-PATCHES: a NetLogo agentset, all patches + +DESCRIPTION: + + Reports the agentset consisting of all the patches. + + This agentset is special in that it represents the living patches + each time it's used, so changes depending on the state of the engine. + + See http://ccl.northwestern.edu/netlogo/docs/dictionary.html#patches" + *patches*) + (defun turtles () "TURTLES => ALL-TURTLES