Searched refs:findFirstWithPredicate (Results 1 – 2 of 2) sorted by relevance
26 def findFirstWithPredicate(collection, pred): function42 return findFirstWithPredicate(elems, lambda elem: getElemName(elem) == name)50 return findFirstWithPredicate(elems, lambda elem: getElemType(elem) == typename)58 return findFirstWithPredicate(collection, lambda elt: elt.name == name)