Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Have you considered recursion? Commented Mar 18, 2017 at 0:08
  • Can you elaborate? Do you mean a recursive version of #1, something like UpdateList(x:xs)=Update(x):UpdateList(xs)? Commented Mar 18, 2017 at 0:41
  • That is what I meant, yes. Commented Mar 18, 2017 at 0:57
  • Would a List really be a good topographical space for your artificial environment? Your organisms will live in a one-dimensional space, and will always be space. Have you considered a two-dimensional Cartesian layout instead? Commented Mar 18, 2017 at 2:14
  • Do you have a realistic example of this problem? My first instinct would be option 1 (have Update return a list and concatenate the lists), so I'm wondering when that would not be a good solution. Commented Mar 19, 2017 at 9:42