[Solved] What does “def loop: Boolean = loop” do in Scala


That is a recursive method that just calls itself. It creates an infinite loop.

3

solved What does “def loop: Boolean = loop” do in Scala