List of child turtles

children

Returns a list of all currently existing turtles which were created by this turtle.

Example:

"t := (newturtles 3)
print children
foreach "i children [print who @ :i]

Output:

[t1 t2 t3]
t1
t2
t3

See also:

Turtle - object
parent - parent turtle

Table of Content