• Reptorian
    link
    fedilink
    arrow-up
    3
    ·
    15 days ago

    I had this problem only once. Luckily, I do not need recursion. I know my way using iterative process.

      • Reptorian
        link
        fedilink
        arrow-up
        2
        ·
        13 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
            ·
            8 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.