• r00ty@kbin.life
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Oh right. I thought it might work the same as range etc in python, where is does one less than you specify… Coming from, well every other language this really threw me off on my first python excursion.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 month ago

        Lua starts at 1 too. It’s infuriating. I believe for the same historical reason Matlab does.

        Both meant for non CS people.