Accumulate is an exercise that uses higher order functions to perform a map/transform/etc operation on an input list.
In some languages I've seen solutions that mutate the input list as part of their solution. (Some languages like Haskell can't have this problem, but C, Go, Common Lisp, etc certainly can)
Is it possible to add an optional test across the board for "input list is not mutated"?
Accumulate is an exercise that uses higher order functions to perform a
map/transform/etc operation on an input list.In some languages I've seen solutions that mutate the input list as part of their solution. (Some languages like Haskell can't have this problem, but C, Go, Common Lisp, etc certainly can)
Is it possible to add an optional test across the board for "input list is not mutated"?