/** Creates a new TreeDef which whose {@code childrenOf} method is filtered by the given predicate. */ default TreeDef<T> filter(Predicate<T> predicate) { return TreeDef.of(node -> TreeImp.filteredList(childrenOf(node), predicate)); }
/** Creates a new TreeDef which whose {@code childrenOf} method is filtered by the given predicate. */ default TreeDef<T> filter(Predicate<T> predicate) { return TreeDef.of(node -> TreeImp.filteredList(childrenOf(node), predicate)); }