Increment
Now we can put it all together and create the increment function.
This function will take an optional Value
and return a Solution
with the new expected count. \
#![allow(unused)] fn main() { pub fn increment_solution_set(count: Option<Value>) -> anyhow::Result<(SolutionSet, Word)> { let count = extract_count(count)?; let new_count = count + 1; Ok((create_solution_set(new_count), new_count)) } }