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

bundles / IPython 9.12.0 / IPython / utils / data / uniq_stable

function

IPython.utils.data:uniq_stable

source: /IPython/utils/data.py :20

Signature

def   uniq_stable ( elems : Iterable[T] )  →  list[T]

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