collections module

A set of utilities related with collections.

jinete.utils.collections.remove_duplicates(seq)[source]

Remove the duplicated elements of a list, preserving its original order.

Parameters

seq (List[E]) – The original list.

Return type

List[E]

Returns

A list with elements ordered as a in the initial one, but removing the duplicated elements.