387
Recursion (kbin.melroy.org)
you are viewing a single comment's thread
view the rest of the comments
[-] Reptorian@programming.dev 3 points 1 week ago

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

[-] ulterno@programming.dev 1 points 1 week ago
[-] Reptorian@programming.dev 2 points 1 week ago

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

[-] ulterno@programming.dev 1 points 6 days ago
[-] Reptorian@programming.dev 2 points 5 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.

this post was submitted on 08 Apr 2025
387 points (98.3% liked)

Programmer Humor

22616 readers
1396 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS