I am new to NetLogo. I want to create a global variable of type array which
can be accessed from different sections of the code. I saw the description
about array in Netlogo manual and I tried as shown below, but it didn’t
work. Any help to fix the error?
extensions [ array]
globals [
a array:from-list
]
to setup
array:set a array:length 5
array:set a 3 9
end
To go
print a
end
--
You received this message because you are subscribed to the Google Groups
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.