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 <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org