| RECYCLE | |
| Syntax | RECYCLE (RECYCLE "TRUE) |
| Explanation | RECYCLE starts the Logo garbage
collector. All elements are scanned, and elements which
are not needed any more are freed. The result is the
number of available nodes. If TRUE is given as an optional input, RECYCLE prints information about its work. Normally, Logo starts the garbage collector whenever it detects that it would run out of elements. This might be a lengthy operation, so RECYCLE is provided to start the garbage collector at a user-defined time. The number of free nodes reported is a snapshot of the current memory usage; if Logo runs out of memory, it simply allocates more memory from the operating system. |
| Examples | RECYCLE Result: 524 (RECYCLE "TRUE) Recycle #2 5 elements freed Free elements: 523 of 3000 Result: 523 |