Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election struct {
NumCandidates int
NumSeats int
Withdrawn []int
Ballots []Ballot
Candidates []string
Title string
}
func (*Election) FlatNamedBallots ¶ added in v0.0.2
func (e *Election) FlatNamedBallots() []FlatNamedBallot
FlatNamedBallots returns ballots with preferences flattened to a 1d slice and using candidate names.
func (*Election) NamedBallots ¶ added in v0.0.2
func (e *Election) NamedBallots() []NamedBallot
NamedBallots return ballots using candidate names.
func (*Election) NamedWithdrawn ¶ added in v0.0.2
NamedWithdrawn return withdrawn candidates by name.
type FlatNamedBallot ¶ added in v0.0.2
type NamedBallot ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.