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

unique, uniqueItems

  • function -- unique items of

  • new in 1.62

  • Returns the unique items in a list, which is a new list containing the values from the list with any duplicate values removed.

  • Examples: +

     put the unique items of [a,b,c,d,d,f,b,g] —> [a,b,c,d,f,g]
     put uniqueItems([1,2,3,4,5,0,2,4,6,8]) —> [1,2,3,4,5,0,6,8]
  • Related: excludeItems, intersection, union