wL idZdZdZy)zIUtilities for working with data structures like lists, dicts and tuples. cnt}|Dcgc]}||vs|j|r|c}Scc}w)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. )setadd)elemsseenxs X/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/IPython/utils/data.py uniq_stabler s/ 5D B! dhhqkA BB Bs 222c`tdt||Dcgc] }||||z c}Scc}w)z.Chop a sequence into chunks of the given size.)rangelen)seqsizeis rchoprs-#(3s8D#9 :aC!D&M :: :s+N)__doc__r rrrs C;r