setDifference()

概要

List1 のメンバーを返しますが、list2 のメンバではない項目の list をクリックします。

構文

setDifference ( list1 As List, _
                list2 As List, _
                Optional key As Name = Identity, _
                Optional test As Name = Equal ) As List
引数 [タイプ] 説明
list1 List 最初の list
list2 List 2 番目の list
key Name 既定値の ID です。 関数は 2 つの引数を取ります lists の項目ごとに呼び出す関数の名前オプション; ;; します。
テスト Name 既定では同一です。 関数は 2 つの引数を取る lists で項目の 「 キー 」 結果に適用されるテスト関数の名前オプション; ;; します。

例 1

Intent >setDifference({a, b, c, d}, {a, b, c, e}) 
--> {d} 		

例 2

Intent >setDifference({a, b, c, d}, {a, b, c, e, d}) 
--> {}