
    Mh                         d Z d Zd ZdS )zIUtilities for working with data structures like lists, dicts and tuples.
c                 <    t                      fd| D             S )a/  uniq_stable(elems) -> list

    Return from an iterable, a list of all the unique elements in the input,
    but maintaining the order in which they first appear.

    Note: All elements in the input must be hashable for this routine
    to work, as it internally uses a set for efficiency reasons.
    c                 F    g | ]}|v                     |          |S  )add).0xseens     R/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/IPython/utils/data.py
<listcomp>zuniq_stable.<locals>.<listcomp>   s,    BBB!dhhqkkA    )set)elemsr   s    @r	   uniq_stabler      s(     55DBBBBuBBBBr   c                 \      fdt          dt                               D             S )z.Chop a sequence into chunks of the given size.c                 *    g | ]}||z            S r   r   )r   iseqsizes     r	   r
   zchop.<locals>.<listcomp>   s%    :::aC!D&M:::r       )rangelen)r   r   s   ``r	   chopr      s3    :::::53s88D#9#9::::r   N)__doc__r   r   r   r   r	   <module>r      s:    
C 
C 
C; ; ; ; ;r   