U
    1e๗  ใ                   @   s   d Z dd Zdd ZdS )zIUtilities for working with data structures like lists, dicts and tuples.
c                    s   t    fd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                    s"   g | ]}| kr   |กs|qS ฉ )ฺadd)ฺ.0ฺxฉฺseenr   ๚6/tmp/pip-unpacked-wheel-3hxk2k58/IPython/utils/data.pyฺ
<listcomp>   s      
 zuniq_stable.<locals>.<listcomp>)ฺset)ฺelemsr   r   r   ฺuniq_stable   s    	r   c                    s     fddt dt D S )z.Chop a sequence into chunks of the given size.c                    s   g | ]} ||  qS r   r   )r   ฺiฉฺseqฺsizer   r   r      s     zchop.<locals>.<listcomp>้    )ฺrangeฺlenr   r   r   r   ฺchop   s    r   N)ฺ__doc__r   r   r   r   r   r   ฺ<module>   s   