Format: application/x-python-code
⬇ Download File (1.2 KB)
   1  o
   2  
   3  ��h��@sdZdd�Zdd�ZdS)zIUtilities for working with data structures like lists, dicts and tuples.
   4  cst���fdd�|D�S)a/uniq_stable(elems) -> list
   5  
   6      Return from an iterable, a list of all the unique elements in the input,
   7      but maintaining the order in which they first appear.
   8  
   9      Note: All elements in the input must be hashable for this routine
  10      to work, as it internally uses a set for efficiency reasons.
  11      cs"g|]
  12  }|�vr��|�s|�qS�)�add)�.0�x��seenr�Hc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/utils/data.py�
  13  <listcomp>s"zuniq_stable.<locals>.<listcomp>)�set)Zelemsrrr�uniq_stable
  14  s	r
  15  cs ��fdd�tdt����D�S)z.Chop a sequence into chunks of the given size.csg|]
  16  }�||���qSrr)r�i��seq�sizerrrszchop.<locals>.<listcomp>�)�range�lenrrrr�chops rN)�__doc__r
  17  rrrrr�<module>s
  18