Setting a function parameter to an integer in NetLogo
After exhausting the documentation for NetLogo on the Internet, I could not find a solution to set the parameter (allows calling it r) an integer in the function declaration.
In python, it is as simple as WTMC(n, r=25):
In NetLogo, however, I do not know how to set r = 25 without having an error.
How to set the function WTMC [ n r ]toWTMC [ n r = 25 ]
So that I can then call my function:, show WTMC [ n ]without having to enable the parameterr
Thanks in advance
source
share