SUIT Framework

Scripting Using Integrated Templates

Docs - returningdelete

07/31/2010: SUIT 2.0.1 and Rulebox 1.1.0 released.

Available Since: Rulebox for Python (1.0.0)

Delete contents of a tree to break references.

Syntax void templating.returningdelete ( list tree, int limit )
Parameters
tree

The contents of the tree.

limit

What the length the tree contents should be limited to.

Return Value

Nothing. The contents of ``tree`` are modified.

Examples
Basic Usage
Python
from rulebox import templating
tree = ['1', '2', '3', '4']
templating.returningdelete(tree, 1)
# Returns: None. tree is now ['1']