From e429b9a2ed67cf934d005917aebea399dc151695 Mon Sep 17 00:00:00 2001 From: Nicolas Alexander Stucki <nicolas.stucki@epfl.ch> Date: Tue, 8 Oct 2019 08:07:27 +0000 Subject: [PATCH] Update syntax --- recitation-sessions/solution-2.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recitation-sessions/solution-2.md b/recitation-sessions/solution-2.md index 545b507..519b055 100644 --- a/recitation-sessions/solution-2.md +++ b/recitation-sessions/solution-2.md @@ -20,11 +20,11 @@ def uncurry2(f: Double => Int => Boolean): (Double, Int) => Boolean = def fixedPoint(f: Int => Int): Int => Int = { @tailrec - def go(x: Int): Int = { + def rec(x: Int): Int = { val y = f(x) - if (x == y) x else go(y) + if x == y then x else rec(y) } - go + rec } ``` -- GitLab