Skip to content
Snippets Groups Projects
Commit e429b9a2 authored by Nicolas Alexander Stucki's avatar Nicolas Alexander Stucki
Browse files

Update syntax

parent b9900a60
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment