</p>
<div class="codehilite"><pre><span></span><code><span class="nv">program</span> <span class="nv">demo_rank_unique</span>
<span class="o">!</span> <span class="nv">rank</span> <span class="nv">an</span> <span class="nv">array</span>, <span class="nv">with</span> <span class="nv">removal</span> <span class="nv">of</span> <span class="nv">duplicate</span> <span class="nv">entries</span>.
<span class="nv">use</span> <span class="nv">M_orderpack</span>, <span class="nv">only</span> : <span class="nv">rank_u