Skip to main content

learn_and_write

Function learn_and_write 

Source
pub fn learn_and_write(
    ballots: &[(String, String)],
    outcome: &str,
    beta: f64,
    about: &[String],
) -> Result<(Vec<Trust>, Vec<Persona>)>
Expand description

learn_about and learn_anchors together, written to the pack: the rows, then the personas the outcome moved. Returns what was written.

ยงErrors

The pack refusing a row or a persona.