Generation

generate functionSat, 12 Nov 2022

Compute the hate of all my ex

let my_ex_list = [1, 2, 3, 4] fn get_hate(my_ex_list: &Vec<i32>) -> i32 { let mut hate = 0; for ex in my_ex_list { hate += ex; } hate }

Questions about programming?Chat with your personal AI assistant