def all_cols_generator(board: list):
    """
    This function is a generator for all cols of a board

    >>> [a for a in all_cols_generator(["ab", "*d"])]
    [['a', '*'], ['b', 'd']]
    """

    return (
        [
            board[i][j]
            for i, _ in enumerate(board)
        ] for j, _ in enumerate(board[0])
    )