Skip to content

集合操作:交集、并集、差集、补集、是否子集……#475

Open
bluecrush wants to merge 1 commit intokillme2008:masterfrom
bluecrush:master
Open

集合操作:交集、并集、差集、补集、是否子集……#475
bluecrush wants to merge 1 commit intokillme2008:masterfrom
bluecrush:master

Conversation

@bluecrush
Copy link

SeqContainsAnyFunction
SeqDisjunctionFunction
SeqIntersectionFunction
SeqIsEqualFunction
SeqIsSubSeqFunction
SeqSubtractFunction
SeqUnionFunction

}
Collection<?> coll1 = (Collection<?>) seq1;
Collection<?> coll2 = (Collection<?>) seq2;
if (coll1.size() < coll2.size()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Collections.disjoint can be used here:
https://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#disjoint(java.util.Collection,%20java.util.Collection)

return Collections.disjoint(coll1, coll2)? AviatorBoolean.FALSE : AviatorBoolean.TRUE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants