def is_tile(*tiles):
    """Return a predicate function for `find()` that will
    find all coordinates containing one of `tiles`."""
    tiles = set(tiles)
    def predicate(tile_map, coord):
        tile = tile_map[coord]
        return (tile in tiles)
    return predicate