Questions tagged [mutation]

Mutation refers to a genetic operator used to maintain genetic diversity from one generation of a population to the next. For javascript DOM, use [mutation-observers]. For Java mutators, use [mutators]. For object mutability in general, use [mutability].

557 questions
-3
votes
1 answer

Is changing a variable in a recursive call considered mutation

My goal is to sum a list without using mutation. def noMutObj(lst,pointer=0, result=0): if pointer == len(lst): return result newResult = result + lst[pointer] return noMutObj(lst, pointer+1, newResult) Would we consider…
Artemis
  • 139
  • 12
1 2 3
…
37
38