While I don't think there's one readily available, you can easily define one
yourself:

def senumerate(seq):
    return ((ZZ(i), x) for (i,x) in enumerate(seq))

Hoep this helps.

On Sun, Jul 31, 2011 at 5:29 PM, tvn <nguyenthanh...@gmail.com> wrote:

> The enumerate function in Python has the index type as 'int'  instead of
> say sage's Integer.   is there an equivalent of enumerate in Sage that
> returns Integer type ?  Thanks
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
Tim Joseph Dumol <tim (at) timdumol (dot) com>
http://timdumol.com

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

Reply via email to