use new function syntax
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
fun fib(x:Int) -> Int
|
||||
func fib(x:Int) -> Int
|
||||
{
|
||||
if (x <= 1)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var callCnt:Int = 0;
|
||||
fun fib(x:Int) -> Int
|
||||
func fib(x:Int) -> Int
|
||||
{
|
||||
callCnt = callCnt + 1;
|
||||
if (x <= 1)
|
||||
|
||||
Reference in New Issue
Block a user