+ 1
Someone please explain to me how the loop functions in any of the languages.
learning
4 odpowiedzi
+ 10
Pls don't make us paste everything in here ;)
Move to the learning section > type 'loop' in the search bar.
+ 5
Nevermind, you're welcome ^^
+ 1
I didn't know about that...well now I know
thanks for the tip
+ 1
It seems like you stopped the sentence in the middle.
I'll answer as if you'd have ended the sentence with the word works.
The loop functions I suppose you're talking about are like map, reduce, forEach and sort.
They work with function callbacks, delegates, function pointers, funcional interfaces, and lambdas (They all work in basic the same way).
My example will have functions.
In any method described above, one "function" will be called inside a loop, and/or a recursive function.
Take a look at the simple code below:
https://code.sololearn.com/cn1wM9ZXkA27/?ref=app