Skip to content

Instantly share code, notes, and snippets.

@fsarradin
fsarradin / non_strict.scala
Created September 9, 2022 08:02
Non-strict evaluation in Scala
/**
* Try to solve this puzzle only by modifying the function [[doubleMessage]].
* All checks should succeed.
*
* This exercise must be run in a worksheet.
* - One is available on the Web with Scastie (https://scastie.scala-lang.org)
* - One is available in IntelliJ IDEA
* (https://www.jetbrains.com/help/idea/work-with-scala-worksheet-and-ammonite.html)
*
* Click on "> Run". See the results in the console. And try to solve this