public static NSArray arrayMinusArray(NSArray main, NSArray minus){ NSSet result = ERXArrayUtilities.setFromArray(main); return result.setBySubtractingSet(ERXArrayUtilities.setFromArray(minus)).allObjects(); }
public static NSArray arrayMinusArray(NSArray main, NSArray minus) { NSSet minusSet = new NSSet(minus); NSMutableArray mutableResult = new NSMutableArray(main.count()); Enumeration enum = main.objectEnumerator(); while (enum.hasMoreElements()) { Object obj = enum.nextElement(); if (! minusSet.containsObject(obj)) mutableResult.addObject(obj); }
    public static NSArray arrayMinusArray(NSArray main, NSArray minus){        NSSet result = ERXArrayUtilities.setFromArray(main);        return result.setBySubtractingSet(ERXArrayUtilities.setFromArray(minus)).allObjects();    }