News for hackers. Stuff that matters.
Re:Possible Python rival? Programming language Julia is winn... by nur0n on Sunday September 02, 2018 @02:37PM (#17898030)
I hadn't seen these cartoons before. I had a good laugh :)

More seriously: there are very limited cases where indexing explicitly into an array using literals is The Right Thing to do. It's almost always better to use `map(fn, xs)`, `foreach(fn, xs)`, `for x in xs; fn(x); end`, ... .

If you really wanted to, you can even do:

    for i in firstindex(xs):lastindex(xs)
        x = xs[i]
    end

There are no comments on this comment yet.