Help for this page

Select Code to Download


  1. or download this
        splice @array, $_, 1
            for sort { $b <=> $a } @indices;
    
  2. or download this
        my %u;
        splice @array, $_, 1
              for grep !$u{$_}++, sort { $b <=> $a } @indices;