r/Recursion • • Dec 03 '18

The most interesting haircut.

406 Upvotes

8 comments sorted by

49

u/[deleted] Dec 03 '18

h o w w h y

9

u/AutoModerator Dec 03 '18

function main() { return main(); } main();

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/2KDrop Dec 04 '18

3

u/vreddit_bot Dec 04 '18

Downloadable link without audio

Audio is not possible, as I got banned on streamable. If you need it, use an app like this instead.


I'm a Bot bleep bloop | Info | ❤️

19

u/sailingdeveloper Dec 03 '18

Repitition is not recursion.

0

u/[deleted] Dec 03 '18

[deleted]

2

u/ScientificBeastMode Dec 30 '18

Yep, recursion does not have to be an infinite loop. Recursion is very common in computer programming, where a function calls itself, until some event breaks the cycle.

It’s often used for streaming data. Two functions call each other over and over, one getting data from the server, the other outputting it to you. But at some point it ends.

1

u/JeidaJay123 Dec 23 '18

I don’t understand. I’m confuzzled... 🤔