Lazy Evaluation
Let's discuss the evaluation strategy of Haskell, called lazy evaluation.
We'll cover the following
Evaluation order and termination
Previously, we saw that the order of evaluation does not influence the result of expressions. This changes, however, when non-termination comes into play.
As an example, let’s revisit once more our function both
, the reimplementation of the conjunctive boolean &&
operator:
Get hands-on with 1400+ tech skills courses.