2016-02-23 20 views

回答

0

不太清楚你在问什么 - 选择你的选择。

rule "check for each X.list in Y.list" 
when 
    X($xl: list) 
    $e: E() from $xl 
    Y(list contains $e) 
then 
    // Element $e from X.list also occurs in Y.list. 
end 

rule "check for all X.list in Y.list at once" 
when 
    X($xl: list) 
    Y(list.containsAll($xl)) 
then 
    // all elements of X.list occurs in Y.list 
end 
相关问题