As can be seen in current implementation of https://github.com/exercism/rust/blob/master/exercises/accumulate/example.rs , an implementation that mutates the input is accepted. this behaviour is unlike traditional map. Should tests enforce that the input is not mutated?
As can be seen in current implementation of https://github.com/exercism/rust/blob/master/exercises/accumulate/example.rs , an implementation that mutates the input is accepted. this behaviour is unlike traditional
map. Should tests enforce that the input is not mutated?