メインコンテンツまでスキップ
バージョン:25.2

intersection

  • function

  • new in 1.62

  • Returns the intersection of two lists, which is a new list containing the values that are found in both lists.

  • Examples: +

     put the intersection of [a,b,c,d] and [d,f,b,g] —> [b,d]
     put the values of [1,2,3,4,5] that are also in [2,4,6,8] —> [2,4]
  • Related: excludeItems, union, uniqueItems