votedBy

open infix override fun String.votedBy(voterIdentifier: String): SinglePreferenceVote<S>

This function allows a shortcut to create a SinglePreferenceVote, given the name of Competitor voted by a Voter, distinguished by its identifier.


open infix override fun List<String>.votedBy(voterIdentifier: String): ListOfPreferencesVote<S>

This function allows a shortcut to create a ListOfPreferencesVote, given the name list of Competitor voted by a Voter, distinguished by its identifier.