find_terms : (term -> bool) -> term -> term list
- find_terms (fn _ => true) ``x + y``; > val it = [``y``, ``x``, ``$+``, ``$+ x``, ``x + y``] - find_terms Literal.is_numeral ``x + y``; > val it = [] : term list - find_terms Literal.is_numeral ``1 + x + 2 + y``; > val it = [``2``, ``1``] : term list