diff --git a/manimlib/utils/iterables.py b/manimlib/utils/iterables.py index e213cd91..854067cb 100644 --- a/manimlib/utils/iterables.py +++ b/manimlib/utils/iterables.py @@ -16,7 +16,7 @@ if TYPE_CHECKING: def remove_list_redundancies(lst: Sequence[T]) -> list[T]: """ - Used instead of list(set(l)) to maintain order + Remove duplicate elements while preserving order. Keeps the last occurrence of each element """ return list(reversed(dict.fromkeys(reversed(lst))))