parameters: (collection, name)
return_statement: return findFirstWithPredicate(collection, lambda elt: elt.name == name)
docstring: Traverse a collection of elements with 'name' attributes, looking for and returning one with the right name.
  
      NOTE: Many places where this is used might be better served by changing to a dictionary.
docstring_summary: Traverse a collection of elements with 'name' attributes, looking for and returning one with the right name.
docstring_tokens: Traverse a collection of elements with name attributes looking for and returning one with the right name .
function: def findNamedObject(collection, name):
      """Traverse a collection of elements with 'name' attributes, looking for and returning one with the right name.
  
      NOTE: Many places where this is used might be better served by changing to a dictionary.
      """
      return findFirstWithPredicate(collection, lambda elt: elt.name == name)
function_tokens: def findNamedObject ( collection , name ) : return findFirstWithPredicate ( collection , lambda elt : elt . name == name )