def picture_set(A, L):
    """
    This is needed in the :meth:`Minimog.find_hexad` function below.

    EXAMPLES::

        sage: from sage.games.hexad import *
        sage: M = Minimog(type="shuffle")
        sage: picture_set(M.picture00, M.cross[2])
        {5, 7, 8, 9, 10}
        sage: picture_set(M.picture02, M.square[7])
        {2, 3, 5, 8}
    """
    return set([A[x] for x in L])