Monday, 15 February 2010

How to create a list containing numbers from 1 to given number in NetLogo? -



How to create a list containing numbers from 1 to given number in NetLogo? -

does know how create list containing numbers 1 given number in netlogo? looks [1 2 ... given number] thanks!

netlogo has primitive called n-values. simply:

n-values 10 [ ? + 1 ]

will give list:

[1 2 3 4 5 6 7 8 9 10]

but there plenty of other neat stuff can n-values. should take @ the documentation.

list netlogo

No comments:

Post a Comment