Verified Commit 8ee036e3 authored by Jakob Moser's avatar Jakob Moser
Browse files

Draft prune function

parent 58d3cf38
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
from collections.abc import Sequence

from karaokatalog.deduplicate.instructions.DeleteInstruction import DeleteInstruction
from karaokatalog.Song import Song


def prune(equivalent_songs: Sequence[Song]) -> Sequence[DeleteInstruction]:
    """
    Prune a sequence of equivalent songs, by returning a sequence of instructions
    that delete all but one song in this sequence.
    """
    pass