from functools import reduce


def join_bits(byteseq) -> int:
    """
    Given a sequence of 0/1 or True/False bits altogether representing a
    single byte, joins said bits into an int of the same magnitude

    >>> join_bits([1, 1, 0, 1])
    13
    """
    return reduce(lambda acc, bit: (acc << 1) | int(bit), byteseq)