except
exceptFilter = function(excepts, src) { return ( filter( function(e){ return (e!=src) ? 1 : 0; }, excepts).length != excepts.length) ? 0 : 1; } except = function(srcList, excepts) { return filter( partial(exceptFilter,excepts), srcList ); };
usage:
list = [0,1,2,3,4,5,6,7,8,9]; excepts = [2,5,7,8,9]; result = except( list, excepts ); // [0,1,3,4,6]