开发者

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜