<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def difference(self, other):
 """ Returns a FrozenList with elements from other removed from self. Parameters other : array-like The array-like whose elements we are removing self. Returns ------- diff : FrozenList The collection difference between self and other. """

        other = set(other)
        temp = [x for x in self if x not in other]
        return type(self)(temp)