Inline function: handle recursive calls
This commit is contained in:
@@ -0,0 +1 @@
|
||||
fun fact(x: Int): Int = if (x < 2) 1 else x * <caret>fact(x - 1)
|
||||
Reference in New Issue
Block a user
@@ -0,0 +1 @@
|
||||
fun fact(x: Int): Int = if (x < 2) 1 else x * <caret>fact(x - 1)
|
||||