parameters: (s, predicate)
return_statement: return yes, no
docstring: Split sequence s via predicate, and return pair ([true], [false]).
  
      The return value is a 2-tuple of lists,
          ([x for x in s if predicate(x)],
           [x for x in s if not predicate(x)])
docstring_summary: Split sequence s via predicate, and return pair ([true], [false]).
docstring_tokens: Split sequence s via predicate and return pair ( [ true ] [ false ] ) .
function: def _split_list(s, predicate):
      """Split sequence s via predicate, and return pair ([true], [false]).
  
      The return value is a 2-tuple of lists,
          ([x for x in s if predicate(x)],
           [x for x in s if not predicate(x)])
      """
  
      yes = []
      no = []
      for x in s:
          if predicate(x):
              yes.append(x)
          else:
              no.append(x)
      return yes, no
function_tokens: def _split_list ( s , predicate ) : yes = [ ] no = [ ] for x in s : if predicate ( x ) : yes . append ( x ) else : no . append ( x ) return yes , no