import torch


def append(x, y):
    """

    Args:
        x: first array
        y: second array

    Returns:
        Concatenates two arrays. If first is None, just assigns to value of second one
    """
    if x is None:
        x = y
    else:
        x = torch.cat((x, y))
    return x