def pack(word, pattern):
    """Return a packed word given a spaced seed pattern.

    >>> pack('actgac', [True, False, True, True, False, True])
    'atgc'
    """
    ret = []
    for i, char in enumerate(word):
        if pattern[i]:
            ret.append(char)
    return "".join(ret)