@cm0002@lemmy.world to Programmer Humor@programming.dev • 1 month agoRecursionkbin.melroy.orgimagemessage-square15fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageRecursionkbin.melroy.org@cm0002@lemmy.world to Programmer Humor@programming.dev • 1 month agomessage-square15fedilink
minus-square@Reptorian@programming.devlinkfedilink0•1 month agoI actually use repeat(iterations,index_name(optionall),);. No need for i++ or ++i for loop in many cases.
minus-square@Reptorian@programming.devlinkfedilink0•28 days agoYeah. 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.
You forgot
i++
I actually use
repeat(iterations,index_name(optionall),);
. No need for i++ or ++i for loop in many cases.😶
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.