select

Contents

select#

penzai.core.selectors.select(tree: Any) Selection[source]#

Wraps a tree in a singleton selection for processing.

Parameters:

tree – A tree to select.

Returns:

A selection of the entire tree. Useful because it allows chaining additional selection methods defined on Selection.