Scala while and for loops

Subscribers:
11,000
Published on ● Video Link: https://www.youtube.com/watch?v=pqFtKFCavEs



Duration: 14:00
100 views
2


The while loop is straight forward, but the for loop contains some magic.
A for loop can return a new list with the yield keyword!
Nested for loops are created very easily with the scala for syntax.
Enjoy!
Feel free to leave a comment or question.
The code is located here:
https://github.com/ekim197711/springboot-scala
Follow me on twitter:
https://twitter.com/MikeMoelNielsen







Tags:
scala
loop
for
while