ok here's a question. I just posted this
Rust answer, however technically this answer only works in my test suite, because my test suite calls the function with
let output: Vec<i32> = swaps(&input);
(
swaps()
being the function). Explicitly specifying the type of
output
allows Rust to infer the return type of the closure, but without that explicit type it errors. Should I be required to include an explicit return type?