Batman.BinarySetOperation. It implements a complement operation: it contains the members of
left which aren't in
Batman.SetComplement is a subclass of
Batman.Set, you can use it just like a
test 'SetComplement contains the complement of two sets', ->
left = new Batman.Set(1, 2, 3)
right = new Batman.Set(3, 4, 5)
operation = new Batman.SetComplement(left, right)
ok operation.has(1), 'has items from the left set only'
ok !operation.has(4), 'doesnt have items from the right set only'
ok !operation.has(3), 'doesnt have items from both sets'