For (

>for (...
>any type of loop at all

Attached: 1530412468174.png (588x823, 95K)

Yeah you are so fucking intelligent for making this thread you enormous faggot.

>t. pajeet who uses for loops

>t. faggot who posts le epic brainlet meme in 2019

please do the needful and write the for loop sir

>Not using recursion with tail call optimization
How does it feel like using inferior language features? What's that? I can't hear you over my tree recursions.

I don't know what it is, it's your job to know it codemonkey.

>GOTO
>any loops
u rarted

Attached: Q5ptlCx.png (408x450, 34K)

>iteration instead of recursion
Might just stop programming right now, you'll forever remain bad at it.

Why would I even learn when Ranjeets like you do it for me?

>actually using recursion
It's like you've never actually programmed outside of doing those Jow Forums programming challenges in some obscure functional language nobody above the poverty line uses

t. single corelet

>t. webdeveloper poo in loo codemonkey
Go eat a curry Taijesh.

>It's like you've never actually programmed outside of doing those Jow Forums programming challenges in some obscure functional language nobody above the poverty line uses
>meanwhile in the real world...

Attached: Screenshot_20190307_182151.png (259x163, 10K)

>JewSA
>commifeornia
enjoy your shipping container for 50K a month

while (1) {
printf("OP is a faggot\n");
}

while 1 what huh?!

>unironically caring about what programming constructions people uses for iterating over an iterable data type
>unable to comprehend the meaning and significance of the Curry-Howard correspondence and the Church-Turing thesis

Good job OP, you really showed 'em!

Attached: brainlet.jpg (800x450, 44K)

0/10 post, try harder next time.

>Curry
confirmed praraj

>15 grand per month
>3 bedroom apartment is at max 5 grand a month

Wow, such a terrible life! I'd rather make 60k in the countryside!

I'd make 30k in the countryside than be forced to live in Commiefornia

>says the imperative brainlet
You do know that functional languages are vastly superior at parallelism? Parallel recursion is very easy to do.

proc repeat[T](x: T): iterator: T =
return iterator: T =
yield x

proc take[T](iter: iterator: T, n: int): iterator: T =
return iterator: T =
var i = n
while i > 0:
yield iter()
i -= 1

let tenFags = repeat("OP is a faggot").take(10)

for t in tenFags:
echo t

> $15k a month
> Turns to $10k after state and federal taxes
> Literally half your salary goes into rent that doesn't build any wealth
> Spend half of your day sitting in gridlocked traffic because your fancy $5k apartment is still 20 miles away from work

for(; ;) printf("OP is still a faggot") ;

Iteration uses less memory and is faster for most simple use cases.

for(;;printf("OP is still a faggot")){}

Is it as easy as for loop recursion?

In C or Fortran it's just:
#pragma omp parallel for
for(...

done.

for loop parallelisation*

Your CPU will receive imperative opcodes and there is no way around that. Knuth acknowledged that fact and analyzed algorithms in TAOCP in their imperative ASM form.

for(int i = printf("OP is declared a faggot") ; i=! printf("OP is compared to a bundle of sticks") ; puts("also does anybody still use puts in C these days " ){}

I think you don't even need to do variable declaration/assignment or comparisons in there right?

>int
>string

Attached: 1510077070510s.jpg (221x250, 5K)

well string is basically an array of chars which are internally represented as int

tfw javascript lets you add integers and strings together

>float-worshipping cuck trying to look smart

Attached: 1535309109163.jpg (662x900, 59K)

you don't, empty for loops are valid at least in C/C++. I think the compiler converts most loops to one if and one goto down the line, anyways.

To get the same behavior you can use parMap in functional languages. You can also easily reduce via. a fold in parallel if the data your working with is a monoid.
You can also have more fine grained control with speculative parallelism with par and pseq. Software transactional. Memory without locking also exists, which gives way better performance than using a lock.

All this without needing any locks and without race conditions.

I prefer an if loop.

I've used recursion as a webdev. It is ultimate pajeet repellent which makes it extremely useful.

Don't run this, it made my computer hang. Potential Virus

White men use goto

>Muh recursion
How do I do this in C++?

You don't. You use a better functional language.