X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Ftranspile.lisp;h=627a6a8907cc3cb4855d2e843268f4ce67e1c8ec;hp=ea53bfcc7a4c984d08139f977f3082b42f4f1927;hb=3528ea7;hpb=0a00e056cd1a8f022128525ac3cf3494cc36159d diff --git a/src/main/transpile.lisp b/src/main/transpile.lisp index ea53bfc..627a6a8 100644 --- a/src/main/transpile.lisp +++ b/src/main/transpile.lisp @@ -138,9 +138,10 @@ DESCRIPTION: (defsimpleprim :+ :reporter cl:+) (defsimpleprim :* :reporter cl:*) (defsimpleprim :/ :reporter cl:/) -(defprim :any? :reporter (lambda (agentset) `(> (length ,agentset) 0))) +(defprim :any? :reporter (lambda (agentset) `(> (clnl-nvm:count ,agentset) 0))) (defsimpleprim :ask :command clnl-nvm:ask) (defagentvalueprim :color) +(defsimpleprim :count :reporter clnl-nvm:count) (defsimpleprim :crt :command clnl-nvm:create-turtles) (defsimpleprim :die :command clnl-nvm:die) (defsimpleprim :fd :command clnl-nvm:forward)