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