Whoops, looks like William beat me to it.

On Mon, Aug 1, 2011 at 2:00 AM, Tim Joseph Dumol <t...@timdumol.com> wrote:

> 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
>> lyreturns 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
>



-- 
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