を返します。 list1 と list2 に共通する項目の list をクリックします。
setIntersection ( 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 の項目ごとに呼び出す関数の名前オプション; ;; します。 |
test | Name | 任意指定。リスト内の項目の「キー」結果に適用されるテスト関数の名前です。関数は 2 つの引数を取ります。既定値は Equal です。 |
Intent >setIntersection({a, b, c, d}, {a, b, c, e})
--> {a, b, c}
Intent >setIntersection({a, e, i, m}, {a, b, c, d, e})
--> {a, e}