You are viewing an older version (9.2.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.2.0 / IPython / utils / data / uniq_stable

function

IPython.utils.data:uniq_stable

source: /dev/ipython/IPython/utils/data.py:13

Signature

def uniq_stable(elems)

Summary

uniq_stable(elems) -> list

Extended Summary

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.

Aliases

  • IPython.utils.data.uniq_stable