• Reptorian
    link
    fedilink
    arrow-up
    2
    ·
    18 days ago

    I actually use repeat(iterations,index_name(optionall),);. No need for i++ or ++i for loop in many cases.

      • Reptorian
        link
        fedilink
        arrow-up
        2
        ·
        12 days ago

        Yeah. repeat() is unique to a few language. I think just Scala, and G’MIC has it. I use the second one. It’s more convenient than say for(p=0,p<5,++p,);. Sometimes, repeat(5,); suffice.