Method code for $list.compress()

[Turn off line numbering]
  1: arg list;
  2: var x;
  3: 
  4: // [a,a,b,b,c,c,d,d] => [a,b,c,d]
  5: // removes duplicate entries in a list
  6: return hash x in (list) to ([x, 1]).keys();

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon