while is just a standard loop construction which is present in Scala.
lazy keyword is used to declare a
val which is executed when it is accessed the first time. More information:
What does a lazy val do?
Scala leaves out commands
break and
continue "because they do not mesh well with function literals." More information:
Living without break and continue
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати