Flex set-difference
I would like to know how do I define a 开发者_Go百科set difference (A/B) in flex , thank you
If you mean the difference of two character classes, flex provides
the {-}
operator.
This operator's explanation will be found in the Flex manual chapter on Patterns.
Hope this helps
You can do this type of thing quite easily with ActionLinq (ActionLinq.org)
var A:IEnumerable = Enumerable.from([1,2,3,4]);
var B:IEnumerable = Enumerable.from([2,3,4,5]);
var diff:Array = A.except(B).toArray();
精彩评论