Is the last line a bug, or should the input required to be sorted and
an error raised?  Or am I missing something?  The help for rank/unrank
is not very complete.

sage: C = Combinations([0,1,2], 2)
sage: C.unrank(1)
[0, 2]
sage: C.rank([0,2])
1
sage: C.rank([2,0])
0

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to