Quiz: CBV or CBN?

In this lesson, we will take quick quiz to better understand CBV and CBN.

While Scala’s default evaluation strategy is call-by-value, call-by-name can be enforced using =>. Hence, it is important to know when to use CBV and when to use CBN. Take a look at the function below.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy