I kind of suspect Stefan, like me, would instinctively call this operation `each_with_index`.
-- John On May 15, 2014, at 6:33 AM, Kevin Squire <[email protected]> wrote: > One nice thing about Julia is that she borrows many (though not all) good > ideas from other languages. In this case, enumerate came from Python > (although it likely has other incarnations). > > Cheers! > Kevin > > On Thursday, May 15, 2014, Billou Bielour <[email protected]> wrote: > I was thinking the same thing the other day, when using for x in xs I often > find myself needing an index at some point and then I have to change the for > loop, or write an index manually. > > Enumerate is exactly what I need in this case. > > +1 for Julia >
