def filter(self, available):
        """Returns a variant of that permutation which only holds values for the available keys."""
        
        filtered = {}
        for key in self.__combination:
            if key in available:
                filtered[key] = self.__combination[key]
        
        if not filtered:
            return None
            
        return getPermutation(filtered)


    # Map Python built-ins
dataset/ETHPy150Open zynga/jasy/jasy/core/Permutation.py/Permutation.filter/original