parameters: (A, ids, idlist, *options)
return_statement: return subA
docstring: Take a sublist of a list where each member has an id
      the sublist is taken according to the given sublist of ids
      these indicate either ids to take or ids to remove (default
      behavior is to take the ids in idlist, use the option "remove"
      for the other behavior)
docstring_summary: Take a sublist of a list where each member has an id
      the sublist is taken according to the given sublist of ids
      these indicate either ids to take or ids to remove (default
      behavior is to take the ids in idlist, use the option "remove"
      for the other behavior)
docstring_tokens: Take a sublist of a list where each member has an id the sublist is taken according to the given sublist of ids these indicate either ids to take or ids to remove ( default behavior is to take the ids in idlist use the option remove for the other behavior )
function: def idSubList(A, ids, idlist, *options) :
      '''Take a sublist of a list where each member has an id
      the sublist is taken according to the given sublist of ids
      these indicate either ids to take or ids to remove (default
      behavior is to take the ids in idlist, use the option "remove"
      for the other behavior)
      '''
      
      subA = []
      if 'remove' in options :
          idlist = setminus(ids, idlist)
      idlist = list2dict(idlist)
      for i in range(len(ids)) :
          if ids[i] in idlist :
              subA.append(A[i])
  
      return subA
function_tokens: def idSubList ( A , ids , idlist , * options ) : subA = [ ] if 'remove' in options : idlist = setminus ( ids , idlist ) idlist = list2dict ( idlist ) for i in range ( len ( ids ) ) : if ids [ i ] in idlist : subA . append ( A [ i ] ) return subA