Condorcet
Documentation
type Ballot = [[Candidate]]Source
Ballots are a ranking of candidates.
Ballots are lists, where each element is a list of candidates the rank the same. Earlier entries in the ballot list are ranked higher.
E.g., this ballot:
[ [1,3], [4], [2] ]
Means that 1 and 3 are tied for first, outranking 4, and everyone beats 2.