
def add(new, previous=None):
    if previous is None:
        return new
    return previous + new


def collect(new, previous=None):
    if previous is None:
        return [new]
    return previous + [new]


def merge(new, previous=None):
    return add(new, previous)


def add(next_, previous=None):
    if previous is None:
        return next_
    return previous + next_


def collect(next_, previous=None):
    if previous is None:
        return [next_]
    return previous + [next_]


def merge(next_, previous=None):
    return add(next_, previous)

Rename misleading new to next
Rename misleading new to next

  
- def add(new, previous=None):
+ def add(next_, previous=None):
      if previous is None:
-         return new
+         return next_
-     return previous + new
+     return previous + next_
  
  
- def collect(new, previous=None):
+ def collect(next_, previous=None):
      if previous is None:
-         return [new]
+         return [next_]
-     return previous + [new]
+     return previous + [next_]
  
  
- def merge(new, previous=None):
+ def merge(next_, previous=None):
-     return add(new, previous)
+     return add(next_, previous)
  
Rename misleading new to next
## Code Before:

def add(new, previous=None):
    if previous is None:
        return new
    return previous + new


def collect(new, previous=None):
    if previous is None:
        return [new]
    return previous + [new]


def merge(new, previous=None):
    return add(new, previous)

## Instruction:
Rename misleading new to next
## Code After:

def add(next_, previous=None):
    if previous is None:
        return next_
    return previous + next_


def collect(next_, previous=None):
    if previous is None:
        return [next_]
    return previous + [next_]


def merge(next_, previous=None):
    return add(next_, previous)
