eta.util.general.rec_find

rec_find(lst, x, test=<function <lambda>>)[source]

Return subexpressions in a tree that are the same as the given symbol.

A different binary function can be provided using the test argument.