Combinatorica`
Combinatorica`

RankSubset

RankSubset[l,s]

gives the rank, in canonical order, of subset s of set l.

Details