def int_from_bin_list(lst):
    """Convert a list of 0s and 1s into an integer

    Args:
        lst (list or numpy.array): list of 0s and 1s

    Returns:
        int: resulting integer
    """
    return int("".join(str(x) for x in lst), 2)