Remove all the occurrences of a given value

    :param coll: a collection
    :param value: the value to remove
    :returns: a list

    >>> data = ('NA', 0, 1, 'NA', 1, 2, 3, 'NA', 5)
    >>> remove(data, 'NA')
    (0, 1, 1, 2, 3, 5)
544477
def remove(coll, value):
    
    coll_class = coll.__class__
    return coll_class(x for x in coll if x != value)
328153
def seq(self, value):
        
        if value == self._defaults['seq'] and 'seq' in self._values:
            del self._values['seq']
        else:
            self._values['seq'] = value
176086
def clean_value(self, value):
    """"""
    if self._clean_value:
      return self._clean_value(value)
    else:
      return self.reduce_value(value)
666305
def distinct_on(self, value):
        
        if isinstance(value, str):
            value = [value]
        self._distinct_on[:] = value
215366
def remove(self, qfield, value):
        ''' '''
        if isinstance(value, QueryExpression):
            return self._atomic_expression_op('$pull', qfield, value)
        return self._atomic_list_op('$pull', qfield, value)
104651
def remove_all(self, items):
        
        check_not_none(items, "Value can't be None")
        data_items = []
        for item in items:
            check_not_none(item, "Value can't be None")
            data_items.append(self._to_data(item))
        return self._encode_invoke(list_compare_and_remove_all_codec, values=data_items)
952050
def clean(self, value):
        
        value = self.to_python(value)
        self.validate(value)
        return value
1349260
def removeUniqueValue(self, value):
        """"""
        for v in self._uniqueValueInfos:
            if v['value'] == value:
                self._uniqueValueInfos.remove(v)
                return True
            del v
        return False
737272
function removeValueFromList(list, value) {
    for (var i = list.length - 1; i >= 0; i--) {
        if (list[i] == value) {
            return list.splice(i, 1); // remove from array
        }
    }
    return false;
}
647420
def le(self, value):
        
        self.op = '<='
        self.negate_op = '>'
        self.value = self._value(value)
        return self
943922
public boolean removeAll(final IntHashSet coll)
    {
        boolean acc = false;

        for (final int value : coll.values)
        {
            if (value != MISSING_VALUE)
            {
                acc |= remove(value);
            }
        }

        if (coll.containsMissingValue)
        {
            acc |= remove(MISSING_VALUE);
        }

        return acc;
    }
664350
def popvalue(self, k, d=None):
        
        if k not in self._col_dict:
            return d
        value = self._col_dict.pop(k)
        self._col_list.remove(value)
        return value
377176
def discard(self, value):
        """"""
        # Raise TypeError if value is not hashable
        hash(value)

        self.redis.srem(self.key, self._pickle(value))
163515
def remove(self, iterable, data=None):
        
        return self.root.remove(iterable, data=data)
346672
def removeLT(self, item):
        """"""
        count = self.getCountLT(item)
        self._list = self._list[count:]
        return count
944455
def delete_row(self, key, value):
        
        self.rows = filter(lambda x: x.get(key) != value, self.rows)
141659
def overlap(self, value):
        
        if value == 0:
            self._element._remove_overlap()
            return
        self._element.get_or_add_overlap().val = value