unique

get given collection without duplicates


Parameters

unique collection :string :literal :block

Attributes

idgenerate unique id using given prefix

Returns

  • :block
  • or  :nothing

Examples

copy
arr: [1 2 4 1 3 2] print unique arr ; 1 2 4 3

copy
arr: [1 2 4 1 3 2] unique 'arr print arr ; 1 2 4 3

Related