Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| fp:lab02 [2022/03/11 13:02] pdmatei | fp:lab02 [2023/03/10 10:16] (current) pdmatei | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| <code scala> | <code scala> | ||
| def fact (n: Int): Int = { | def fact (n: Int): Int = { | ||
| - | def aux_fact(n: Int, acc: Int): Int = | + | def aux_fact(i: Int, acc: Int): Int = | 
| if (???) acc | if (???) acc | ||
| else ??? | else ??? | ||